Skip to content

fix: pin all GitHub Actions to commit SHAs#1125

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

fix: pin all GitHub Actions to commit SHAs#1125
dgilmanuni merged 1 commit intomainfrom
fix/ci-sha-pin-github-actions

Conversation

@dgilmanuni
Copy link
Copy Markdown
Contributor

Summary

  • Pins all 11 third-party GitHub Actions references across 3 workflow files to immutable commit SHAs, preventing supply chain attacks via tag/branch mutation

What changed

All uses: directives in .github/workflows/check-and-deploy.yml, .github/workflows/lint.yaml, and .github/workflows/search.yaml that referenced mutable tags (@v3, @v4, @v9, @v1, @v1.1.9) or branches (@master) have been replaced with full 40-character commit SHAs. Original version tags are preserved as inline comments for readability. The Homebrew/actions/setup-homebrew@master branch ref was particularly important to pin since branch refs can be force-pushed at any time.

Actions pinned:

Action Original ref SHA
actions/checkout v3 f43a0e5ff2bd294095638e18286ca9a3d1956744
actions/checkout v4 34e114876b0b11c390a56381ad16ebd13914f8d5
actions/setup-node v3 3235b876344d2a9aa001b8d1453c930bba69e610
zentered/vercel-preview-url v1.1.9 e5fb141da2e3d62692b38e6c7c17477aad214165
UnlyEd/github-action-await-vercel v1 3d536f03d951e603b21701814ba211dcbbafaf93
treosh/lighthouse-ci-action v9 2e159d989f91bb9e399801b3e1ad90bcd4749f75
actions/github-script v3 ffc2c79a5b2490bd33e0a41c1de74b877714d736
mshick/add-pr-comment v1 a96c578acba98b60f16c6866d5f20478dc4ef68b
Homebrew/actions/setup-homebrew master b2a302b9a642580cae998e6ba2076ffd28e61317

Test plan

  • Verify check-and-deploy.yml CI passes on this PR
  • Verify lint.yaml CI passes on this PR
  • search.yaml runs on cron schedule only -- manual trigger or next scheduled run will confirm

Session context

Triggered by the axios npm supply chain compromise audit (2026-03-30). All SHAs were resolved via gh api repos/{owner}/{repo}/git/ref/tags/{tag}, with tag objects dereferenced to their underlying commit SHAs where needed (treosh/lighthouse-ci-action and mshick/add-pr-comment were annotated tags requiring an extra dereference step). No local actions were present in this repo.

🤖 Generated with Claude Code

Replace mutable tag/branch references with immutable commit SHAs to prevent
supply chain attacks via tag mutation.

Triggered by: axios npm supply chain compromise audit (2026-03-30)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Apr 1, 2026 0:57am

Request Review

@dgilmanuni dgilmanuni merged commit 37fc7e4 into main Apr 2, 2026
7 of 8 checks passed
@dgilmanuni dgilmanuni deleted the fix/ci-sha-pin-github-actions branch April 2, 2026 17:31
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