Repository navigation
Pin GitHub Actions to commit SHAs at their latest releases - #7
Merged
Merged
Conversation
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 every third-party GitHub Action to a full commit SHA, with the release as a trailing comment, and moves each to its newest release that is at least 14 days old.
A tag such as
@v4can be moved by whoever controls the action's repository (or by an attacker who compromises it), and our next run executes the new code with the job's secrets. A commit SHA cannot be moved. In March 2025tj-actions/changed-fileshad nearly all its tags repointed to a commit that dumped CI secrets into build logs.actions/cacheactions/checkoutactions/download-artifactactions/github-scriptactions/labeleractions/upload-artifactilammy/msvc-dev-cmdnttld/setup-ndkpeter-evans/find-commentreviewdog/action-setupsoftprops/action-gh-releaseNotes:
actions/labelerstays on v4 (pinned to v4.3.0):.github/labeler.ymluses the v4 configuration format, which v5 changed.