chore: pin GitHub Actions to commit SHAs#663
Merged
Merged
Conversation
|
dasanra
approved these changes
May 11, 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.
What it solves
GitHub Actions referenced by mutable tags (e.g.
@v3) can be silently re-pointed by a tag move, which is a supply-chain risk. GitHub itself recommends pinning third-party (and first-party) actions to a full commit SHA.How this PR fixes it
Replaced every
uses: owner/action@vXreference across all four workflow files withuses: owner/action@<full-sha> # <exact-version>. The trailing comment records the exact released tag the SHA corresponds to (e.g.v3.6.0,v3.9.1) rather than the floating major (v3), so future updates are explicit.Actions pinned:
actions/checkout→f43a0e5ff2bd294095638e18286ca9a3d1956744(v3.6.0)actions/setup-node→3235b876344d2a9aa001b8d1453c930bba69e610(v3.9.1)contributor-assistant/github-action→b2a7f9fb90217ea0b8a0c95c288221457be4a31f(v2.2.0)gnosis/changesets-action-github-releases→0c10ec15081f104b1ce721beadafddb9d2880336(v1.2.0)No behavioral change — the SHAs resolve to the same versions previously in use.
How to test it
TestandESLint checkworkflows run and pass.contributor-assistant/github-action).Screenshots
N/A - no UI changes
Checklist
CLA signature
With the submission of this Pull Request, I confirm that I have read and agree to the terms of the Contributor License Agreement.