build(deps): bump codecov/codecov-action from 4 to 7 - #114
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 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@v4...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>
|
|
||
| - name: Upload to codecov.io | ||
| uses: codecov/codecov-action@v4 | ||
| uses: codecov/codecov-action@v7 |
There was a problem hiding this comment.
Semgrep identified an issue in your code:
The coverage job executes codecov/codecov-action@v7, a mutable tag that can be silently repointed to attacker-controlled code. A compromised action could read repository data and CI credentials from the runner and exfiltrate them.
More details about this
The check job runs codecov/codecov-action@v7 in the Upload to codecov.io step. Because v7 is a mutable tag, the action owner—or an attacker who compromises that repository—could repoint it after this workflow is reviewed, causing future runs to execute attacker-controlled code on ubuntu-latest.
A plausible attack would be:
- An attacker gains control of the
codecov/codecov-actionrepository or itsv7tag and changes the action code. - A normal push triggers the
checkjob, which runs the repointed action after the profiling tests andgrcovcreatetarget/debug/coverage/lcov. - The malicious action reads
target/debug/coverage/lcov, repository files, and any credentials or tokens available to the job, then sends them to an attacker-controlled server—for example, by issuing an outbound request from the runner. - The attacker can use any exposed token or credential to access the repository, alter CI results, or pivot into connected services. The same risk already applies to the other mutable action references in this workflow, such as
actions/checkout@v3,dtolnay/rust-toolchain@nightly, andSwatinem/rust-cache@v2.
To resolve this comment:
✨ Commit fix suggestion
- Replace the mutable tag with the full 40-character commit SHA for the intended
codecov/codecov-actionrelease:
uses: codecov/codecov-action@<40-character-commit-SHA> - Verify that the SHA comes from the official
codecov/codecov-actionrepository and corresponds to the version currently intended by@v7. - Keep the existing
with.filesconfiguration unchanged. Pinning the SHA prevents the action reference from silently changing if the tag is moved.
💬 Ignore this finding
Reply with Semgrep commands to ignore this finding.
/fp <comment>for false positive/ar <comment>for acceptable risk/other <comment>for all other reasons
Alternatively, triage in Semgrep AppSec Platform to ignore the finding created by github-actions-mutable-action-tag.
You can view more details about this finding in the Semgrep AppSec Platform.
Bumps codecov/codecov-action from 4 to 7.
Release notes
Sourced from codecov/codecov-action's releases.
... (truncated)
Changelog
Sourced from codecov/codecov-action's changelog.
... (truncated)
Commits
303a32dchore(release): 7.1.1 (#1973)0b35c9echore(release): 7.1.0 (#1971)fb8b358chore(release): 7.0.0 (#1957)ca0a928ci: remove Enforce License Compliance workflow (#1950)e79a696chore(release): 6.0.1 (#1949)51e6422fix: prevent template injection in run: steps (VULN-1652) (#1947)57e3a13Th/6.0.0 (#1928)f67d33dRevert "Revert "build(deps): bump actions/github-script from 7.0.1 to 8.0.0""...75cd116chore(release): 5.5.4 (#1927)87d39f4Revert "build(deps): bump actions/github-script from 7.0.1 to 8.0.0" (#1926)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)