Repository navigation
CI: pin every third-party action to a commit SHA - #86
Merged
Merged
Conversation
This was referenced Aug 8, 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.
Pins all 7 third-party actions to immutable commit SHAs, with the version kept as a trailing comment.
Why
A git tag is a mutable pointer.
uses: Jimver/[email protected]re-resolves on every run, so if that tag is ever moved -- by the maintainer, or by someone who has taken over the account -- the next prebuild silently executes different code, with full access to the runner that produces the release binaries Studio downloads.Two of these were on bare major tags (
ilammy/msvc-dev-cmd@v1,mshick/add-pr-comment@v2), which by convention move on every minor release, so they were already changing under us.Worth being specific about the exposure rather than generic:
Jimver/cuda-toolkitis a personal user account (210 stars, MIT, actively maintained, but one individual and no organisational backing), and it runs on the CUDA build legs.hendrikmuhs/ccache-actionruns on all 9 build legs.actions/*are GitHub-owned and left on tags, consistent with the rest of the repo.What changed
hendrikmuhs/ccache-actiond62db5f07c26379fc4b4e0916f098a92573c3b03Jimver/cuda-toolkit3d45d157f327c09c04b50ee6ccdea2d9d017ec76ilammy/msvc-dev-cmd0b201ec74fa43914dc39ae48a89fd1d8cb592756jlumbroso/free-disk-space54081f138730dfa15788a46383842cd2f914a1bemshick/add-pr-commentb8f338c590a895d50bcbfa6c5859251edc8952fcdevicons/public-upload-to-imgur352cf5f2805c692539a96cfe49a09669e6fca88eSibz/github-status-actionfaaa4d96fecf273bd762985e0e7f9f933c77491817 references across 7 files. The last three are only in
bench.yml.disabled, which GitHub does not execute; pinned anyway so it is safe if it is ever re-enabled.Prebuilt outputs are unaffected
Every SHA is the exact commit its tag pointed at when this PR was written, verified against each upstream repo via the API. Same action code, same inputs, same toolchain -- only the reference is now immutable. Nothing about what gets compiled or packaged changes.
Verification
uses:changed lines (17 insertions, 17 deletions, alluses:). An earlier attempt at this used a regex whose trailing group swallowed adjacent blank lines and comments; it was discarded and redone with a line-scoped edit, and this check is what caught it..github/.Follow-up
Renovate and Dependabot both understand the
@<sha> # <tag>convention and will keep these updated, if you want automated bumps rather than manual ones.