Repository navigation
ci: pin third-party GitHub Actions to full commit SHAs - #4922
Merged
Merged
Conversation
There was a problem hiding this comment.
✅ Gate recommendation: approve.
This satisfies the third-party action pinning scope in #3293: the remaining refs now use full commit SHAs with readable version comments, and the selected commits match the previous refs. Rust toolchain defaults and the PyPI publisher's container-reference handling remain compatible. Automated pin updates can stay separate under #3292.
Contributor
Author
|
Thanks! I looked at the three red checks, and none of them comes from this change. In each job, every step that runs one of the newly pinned actions passed, and each pinned SHA is the same commit its tag pointed to before, so the action code is unchanged:
|
shu-chen-dot-ca
force-pushed
the
fix-3293-pin-actions
branch
from
November 14, 2026 14:53
cdec34e to
9dc4a6f
Compare
wjones127
approved these changes
Nov 19, 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.
Pin every remaining third-party action reference in
.github/to a full 40-character commit SHA, with the intended version in a trailing comment (uses: owner/action@<sha> # vX.Y.Z), following the pins already incli.yml,typos.ymlandmake-release-commit.yml. Fixes #3293.53 references across 13 files change, covering 16 actions, including the branch refs called out in the issue (
dtolnay/rust-toolchain@master,@stable) andpypa/gh-action-pypi-publish@release/v1. Each SHA is the commit its current tag or branch resolves to today, so the code that runs is unchanged. Comments name the most specific tag on that commit (for examplev2.9.3forSwatinem/rust-cache@v2); where no such tag exists, they keep the original ref (v1forsrvaroa/labelerandrui314/setup-mold,v3foraddnab/docker-run-action,stable/masterfordtolnay/rust-toolchain). Thestablebranch ofdtolnay/rust-toolchaindefaults itstoolchaininput tostable, so pinning its SHA keeps thenodejs.ymlstep that passes no toolchain on stable.GitHub-maintained
actions/*references are left on their tags, as in the existing pins. Keeping SHAs current through Dependabot is the sibling issue and is not part of this change.Validation:
uses:reference in.github/is left without a 40-character SHA (53 before, 0 after)..github/,git ls-remoteagainst the upstream repository confirms the SHA is the commit that the commented tag or branch points to. A deliberately altered SHA and a reverted tag ref were both caught.pre-commit runon the changed files passes (check-yaml, end-of-file, trailing whitespace, typos).mainand on this branch, all of them existing ones (custom runner labels and composite actions underworkflows/). It reports none for this change.