Skip to content

fix: pin GitHub Actions to immutable commit SHAs#123

Closed
cubic-dev-ai[bot] wants to merge 1 commit intomasterfrom
fix/pin-github-actions-to-commit-shas
Closed

fix: pin GitHub Actions to immutable commit SHAs#123
cubic-dev-ai[bot] wants to merge 1 commit intomasterfrom
fix/pin-github-actions-to-commit-shas

Conversation

@cubic-dev-ai
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot commented Apr 13, 2026

Summary

  • Pin all GitHub Actions in CI workflows from mutable major-version tags (@v6) to immutable 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)
  • Version comments are preserved inline for maintainability

Pinned versions

Action Version SHA
actions/checkout v6.0.2 de0fac2e4500dabe0009e67214ff5f5447ce83dd
actions/setup-go v6.4.0 4a3601121dd01d1626a1e23e37211e3254c1c06c
codecov/codecov-action v6.0.0 57e3a136b779b570ffcdbf80b3bdc90e7fab3de2

Files changed

  • .github/workflows/test.yml — pinned checkout, setup-go, and codecov-action
  • .github/workflows/build.yml — pinned checkout and setup-go

Test plan

  • Verify CI workflows still run successfully (checkout, go setup, build, test, coverage upload)
  • Confirm no workflow syntax errors

🤖 Generated with Claude Code


Summary by cubic

Pinned CI GitHub Actions to immutable commit SHAs in build.yml and test.yml to harden the pipeline and prevent upstream retag attacks. Kept inline version comments for easy updates.

  • Dependencies
    • actions/checkoutde0fac2e4500dabe0009e67214ff5f5447ce83dd (v6.0.2)
    • actions/setup-go4a3601121dd01d1626a1e23e37211e3254c1c06c (v6.4.0)
    • codecov/codecov-action57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 (v6.0.0)

Written for commit 8ad6970. Summary will update on new commits.

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
Copy link
Copy Markdown

codecov Bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.14%. Comparing base (5dbd3cd) to head (8ad6970).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@f41gh7 f41gh7 closed this Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants