ci: pin github actions to commit shas - #246
Merged
Merged
Conversation
Tags and branches are mutable refs: a compromised or retagged action silently changes what runs in CI. Pinning to immutable commit SHAs removes that class of supply-chain risk.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Compute Unit Report
🔺 increase · 🔻 decrease · – unchanged · 🆕 new · 🗑 removed (vs Generated: 2026-09-01 |
amilz
approved these changes
Sep 1, 2026
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
uses:refs across 12 workflow files to immutable 40-hex commit SHAs.v7orstableto new code, and CI would silently run it. A commit SHA cannot be moved, so what ran yesterday is what runs today.# <version>comment so the file stays readable at a glance, and so dependabot can recognize and bump the pins.actions/cachestays at v4.3.0 infuzz.ymland v6.1.0 elsewhere.dtolnay/rust-toolchain@stableselects the Rust channel by branch name, so it is pinned to the currentstable-branch SHA with the comment# stable.Test Plan
grep -rn "uses:" .github/returns zero refs that are not a 40-hex SHA (excluding local./composite refs).git difftouches onlyuses:lines; no other edits.