Skip to content

Pin GitHub Action references to commit SHAs#745

Merged
thpierce merged 2 commits intomasterfrom
pin-github-actions-sha
Mar 18, 2026
Merged

Pin GitHub Action references to commit SHAs#745
thpierce merged 2 commits intomasterfrom
pin-github-actions-sha

Conversation

@thpierce
Copy link
Copy Markdown
Contributor

@thpierce thpierce commented Mar 18, 2026

Summary

Pin all GitHub Action references to full commit SHAs instead of mutable version tags to prevent supply chain attacks. This is a security best practice recommended by GitHub's security hardening guide.

Mutable version tags (e.g. @v2) can be moved to point to different commits, meaning a compromised upstream action could execute malicious code in our workflows. Pinning to commit SHAs ensures we always run the exact code we've reviewed.

Changes

Old Reference New Reference Hash Version
actions/checkout@v2 actions/checkout@ee0669b ee0669bd1cc54295c223e0bb666b733df41de1c5 v2.7.0
actions/checkout@v3 actions/checkout@f43a0e5 f43a0e5ff2bd294095638e18286ca9a3d1956744 v3.6.0
actions/setup-node@v1 actions/setup-node@f1f314f f1f314fca9dfce2769ece7d933488f076716723e v1.4.6
actions/setup-node@v3 actions/setup-node@3235b87 3235b876344d2a9aa001b8d1453c930bba69e610 v3.9.1
actions/cache@v3 actions/cache@6f8efc2 6f8efc29b200d32929f49075959781ed54ec270c v3.5.0
actions/create-release@v1 actions/create-release@0cb9c9b 0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e v1.1.4
aws-actions/configure-aws-credentials@v4 aws-actions/configure-aws-credentials@7474bc4 7474bc4690e29a8392af63c5b98e7449536d5c3a v4.3.1
codecov/codecov-action@v4 codecov/codecov-action@b9fd7d1 b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 v4.6.0

Static Code Check

Added a static-code-checks job to pr-build.yml that will fail PRs introducing mutable GitHub Action version references.

@thpierce thpierce requested a review from a team as a code owner March 18, 2026 17:00
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.31%. Comparing base (0a9ce04) to head (65cd0cb).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #745   +/-   ##
=======================================
  Coverage   84.31%   84.31%           
=======================================
  Files          36       36           
  Lines        1817     1817           
=======================================
  Hits         1532     1532           
  Misses        285      285           

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@thpierce thpierce merged commit 0aec538 into master Mar 18, 2026
16 checks passed
@thpierce thpierce deleted the pin-github-actions-sha branch March 18, 2026 23:02
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