chore(deps): bump codecov/codecov-action from 6 to 7#251
Merged
dhalperi merged 1 commit intoJun 9, 2026
Conversation
dhalperi
added a commit
that referenced
this pull request
Jun 9, 2026
Coverage upload failed on fork and Dependabot PRs because GitHub withholds
secrets from their pull_request runs, leaving CODECOV_TOKEN empty and the
upload rejected ("Token required because branch is protected").
Switch the trigger to pull_request_target, which runs in the base-repo
context where the token is available. Each checkout fetches the PR head sha
so coverage reflects the PR's code, and the upload passes override_commit
/override_pr to attribute coverage to the PR head. Guard the upload to PR
events or pushes to master, since Dependabot branch pushes lack the token.
This exposes the upload-only token to PR code, which is acceptable here.
Also upload from every matrix version, each under a per-version flag
(python-3.10 ... python-3.14); Codecov merges all uploads for a commit. Add
codecov.yml with after_n_builds so the report is not finalized from a
partial set of uploads.
----
Prompt:
```
Debug #251 - why does the
codecov action fail and what do I have to do to fix it?
```
Follow-up: clarified to provide accurate coverage on any external PR (not
just avoid failing), with CODECOV_TOKEN exposure acceptable; and to upload
from all matrix versions rather than one.
dhalperi
added a commit
that referenced
this pull request
Jun 9, 2026
Coverage upload failed on fork and Dependabot PRs because GitHub withholds
secrets from their pull_request runs, leaving CODECOV_TOKEN empty and the
upload rejected ("Token required because branch is protected").
Switch the trigger to pull_request_target, which runs in the base-repo
context where the token is available. Each checkout fetches the PR head sha
so coverage reflects the PR's code, and the upload passes override_commit
/override_pr to attribute coverage to the PR head. Guard the upload to PR
events or pushes to master, since Dependabot branch pushes lack the token.
This exposes the upload-only token to PR code, which is acceptable here.
Also upload from every matrix version, each under a per-version flag
(python-3.10 ... python-3.14); Codecov merges all uploads for a commit. Add
codecov.yml with after_n_builds so the report is not finalized from a
partial set of uploads.
----
Prompt:
```
Debug #251 - why does the
codecov action fail and what do I have to do to fix it?
```
Follow-up: clarified to provide accurate coverage on any external PR (not
just avoid failing), with CODECOV_TOKEN exposure acceptable; and to upload
from all matrix versions rather than one.
Member
|
@dependabot rebase |
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 6 to 7. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@v6...v7) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
c49ba66 to
ebf4407
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #251 +/- ##
=======================================
Coverage 96.13% 96.13%
=======================================
Files 8 8
Lines 621 621
=======================================
Hits 597 597
Misses 24 24
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
dhalperi
reviewed
Jun 9, 2026
dhalperi
left a comment
Member
There was a problem hiding this comment.
@dhalperi reviewed 1 file and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved.
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.
Bumps codecov/codecov-action from 6 to 7.
Release notes
Sourced from codecov/codecov-action's releases.
Changelog
Sourced from codecov/codecov-action's changelog.
... (truncated)
Commits
This change is