Repository navigation
ci(codecov): upload coverage with OIDC instead of a token - #113
Merged
Merged
Conversation
Codecov files an upload under the project its token belongs to. This repository's CODECOV_TOKEN secret held exeradar's token, so every coverage report since at least 2026-10-17 went to exeradar's project, and codecov/patch on #111 waited for one that never came. The upload now uses OIDC (use_oidc: true; id-token: write on the test job, contents: read repeated since job permissions replace the workflow's): GitHub tells Codecov which repository the job runs in. test_the_upload_is_given_a_token becomes a test that requires OIDC and forbids the secret. Same as maksimtech/mailradar#135. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merging this PR will not alter performance1 warning
Comparing |
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This was referenced Nov 22, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Same as maksimtech/mailradar#135 and maksimtech/cookieradar#104, both merged; on each, the upload log now names the repository's own project.
Why
The coverage upload authenticated with the
CODECOV_TOKENsecret, and Codecov files an upload under the project its token belongs to. Every Tests run here since at least 2026-10-17 loggedresults will be available at: app.codecov.io/github/maksimtech/exeradar/commit/…: this repository's secret held exeradar's token. So this repository's Codecov project got no reports, andcodecov/patchon #111 stayed "in progress" for good, waiting for one.What
test.yml: the Codecov step usesuse_oidc: trueand no token; the test job getspermissions: contents: read, id-token: write(job permissions replace the workflow's).tests/test_codecov_contract.py:test_the_upload_is_given_a_tokenis replaced, on purpose, bytest_the_upload_proves_which_repository_it_comes_from. It requiresuse_oidc: trueandid-token: writeon every job that uploads, and forbids a token in the step andsecrets.CODECOV_TOKENanywhere.Checks
the upload does not use OIDC).pytest: 2431 passed, 4 skipped.ruff check src tests benchmarks scripts tools: clean.maksimtech/patchradar, andcodecov/patchshould report.After merge, the
CODECOV_TOKENsecret of this repository is unused and can be deleted (a repository setting).Not to be auto-merged: merge by hand after review.
🤖 Generated with Claude Code