Skip to content

fix: pin all GitHub Actions to commit SHAs#276

Merged
dgilmanuni merged 1 commit into
masterfrom
fix/ci-sha-pin-github-actions
Apr 2, 2026
Merged

fix: pin all GitHub Actions to commit SHAs#276
dgilmanuni merged 1 commit into
masterfrom
fix/ci-sha-pin-github-actions

Conversation

@dgilmanuni

Copy link
Copy Markdown
Contributor

Summary

  • Pin all GitHub Actions in CI workflow to full-length commit SHAs to prevent supply chain attacks via tag mutation

What changed

Replaced mutable tag references (@v1) with immutable commit SHA references for all three actions in .github/workflows/CI.yml:

  • actions/checkout@v1 -> actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
  • actions/setup-node@v1 -> actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e
  • actions/cache@v1 -> actions/cache@f5ce41475b483ad7581884324a6eca9f48f8dcc7

Original tag names are preserved as inline comments for readability.

Test plan

  • CI workflow runs successfully on this PR

Session context

Tags were resolved via gh api repos/{owner}/{repo}/git/ref/tags/{tag} and dereferenced for annotated tags (checkout@v1 was annotated, setup-node@v1 and cache@v1 were lightweight). No other workflow files or action references exist in this repo.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dgilmanuni dgilmanuni requested a review from a team April 2, 2026 17:42
@dgilmanuni dgilmanuni merged commit 6a9e7c9 into master Apr 2, 2026
3 of 5 checks passed
@dgilmanuni dgilmanuni deleted the fix/ci-sha-pin-github-actions branch April 2, 2026 19:50
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