root - chore: defense - pin all GitHub Actions to full SHAs#139
Merged
Conversation
Pin every third-party GitHub Action to a full commit SHA (with a version
comment) instead of a floating major tag. Mutable tag/branch refs can be
moved to point at malicious commits; commit SHAs are immutable. This is a
supply-chain / defense-in-depth hardening change (no behavior change).
- actions/checkout v6 -> df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- actions/setup-node v6 -> 48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- codecov/codecov-action v7 -> fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
- github/codeql-action/{init,autobuild,analyze} v4 -> 8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
pnpm/action-setup was already SHA-pinned (v6.0.8). All four workflow files
still parse.
https://claude.ai/code/session_01Px42UMbWbPmi3d5YeKHwKa
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #139 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 8 8
Lines 492 492
Branches 105 101 -4
=========================================
Hits 492 492 ☔ View full report in Codecov by Harness. 🚀 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
Pin all third-party GitHub Actions to full commit SHAs (supply-chain / defense-in-depth hardening). No behavior change.
Why
Floating major tags (
@v6,@v7,@v4) are mutable — if an action's repo were compromised, the tag could be moved to point at a malicious commit. Pinning to immutable commit SHAs (each with a# vX.Y.Zcomment for readability) removes that risk.Pins
actions/checkout@v6→df4cb1c0…# v6.0.3actions/setup-node@v6→48b55a01…# v6.4.0codecov/codecov-action@v7→fb8b3582…# v7.0.0github/codeql-action/{init,autobuild,analyze}@v4→8aad20d1…# v4.36.2pnpm/action-setup— already SHA-pinned (v6.0.8), unchangedChecks
Generated by Claude Code