fix: pin GitHub Actions to immutable commit SHAs#123
Closed
cubic-dev-ai[bot] wants to merge 1 commit intomasterfrom
Closed
fix: pin GitHub Actions to immutable commit SHAs#123cubic-dev-ai[bot] wants to merge 1 commit intomasterfrom
cubic-dev-ai[bot] wants to merge 1 commit intomasterfrom
Conversation
Pin all third-party GitHub Actions from mutable major-version tags (e.g. @v6) to their full commit SHAs to mitigate supply-chain risks. A compromised or retagged upstream action could execute arbitrary code in CI and exfiltrate secrets (including CODECOV_TOKEN). Pinned versions: - actions/checkout: v6.0.2 (de0fac2e4500dabe0009e67214ff5f5447ce83dd) - actions/setup-go: v6.4.0 (4a3601121dd01d1626a1e23e37211e3254c1c06c) - codecov/codecov-action: v6.0.0 (57e3a136b779b570ffcdbf80b3bdc90e7fab3de2) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #123 +/- ##
=======================================
Coverage 88.14% 88.14%
=======================================
Files 12 12
Lines 1392 1392
=======================================
Hits 1227 1227
Misses 114 114
Partials 51 51 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Summary
@v6) to immutable full commit SHAs to mitigate supply-chain risksCODECOV_TOKEN)Pinned versions
actions/checkoutde0fac2e4500dabe0009e67214ff5f5447ce83ddactions/setup-go4a3601121dd01d1626a1e23e37211e3254c1c06ccodecov/codecov-action57e3a136b779b570ffcdbf80b3bdc90e7fab3de2Files changed
.github/workflows/test.yml— pinned checkout, setup-go, and codecov-action.github/workflows/build.yml— pinned checkout and setup-goTest plan
🤖 Generated with Claude Code
Summary by cubic
Pinned CI GitHub Actions to immutable commit SHAs in
build.ymlandtest.ymlto harden the pipeline and prevent upstream retag attacks. Kept inline version comments for easy updates.actions/checkout→de0fac2e4500dabe0009e67214ff5f5447ce83dd(v6.0.2)actions/setup-go→4a3601121dd01d1626a1e23e37211e3254c1c06c(v6.4.0)codecov/codecov-action→57e3a136b779b570ffcdbf80b3bdc90e7fab3de2(v6.0.0)Written for commit 8ad6970. Summary will update on new commits.