Repository navigation
Pin GitHub Actions to commit SHAs - #493
Merged
Merged
Conversation
Pins actions/checkout, actions/setup-node, actions/upload-artifact, github/codeql-action/*, and peter-evans/repository-dispatch to full commit SHAs (with the resolved version as a trailing comment) instead of floating major-version tags, and bumps each to its latest release in the process. SHA-pinning prevents a compromised or force-moved tag from silently changing what code the workflows execute. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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
.github/workflows/*.ymlto a full commit SHA instead of a floating major-version tag (actions/checkout,actions/setup-node,actions/upload-artifact,github/codeql-action/{init,autobuild,analyze},peter-evans/repository-dispatch), with the resolved release version kept as a trailing# vX.Y.Zcomment for readability.actions/checkoutv6→v7.0.1,actions/setup-nodev6→v7.0.0,actions/upload-artifact→v7.0.1,github/codeql-action/*→v4.38.0,peter-evans/repository-dispatch→v4.0.1.SHA-pinning follows GitHub's hardening guidance so a re-tagged or compromised upstream release can't silently change what code CI executes; Dependabot will continue to keep the pinned SHAs (and their version comments) current.
Test plan
build-test,Check dist/,CodeQL) pass on this branch