Repository navigation
Pin GitHub Actions to commit SHAs - #621
Merged
Merged
Conversation
Pin every external action to a full-length commit SHA with a version comment. Add a Dependabot config for the github-actions ecosystem with a 14-day cooldown to keep the pins fresh. Co-Authored-By: Claude Opus 5.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.
Why
Tags such as
actions/checkout@v4are mutable. The owner of an action can move a tag to different code. That code then runs in our workflows with our secrets. A full-length commit SHA cannot change.Changes
uses:refs across 5 actions (6 action and major-version pairs) inhaskell.yml,reference-docs.ymlandspec.yml. Each pin has a version comment, for example# v4.4.0.actions/checkoutv4 and v6,cachix/install-nix-actionv31,actions/upload-pages-artifactv4,actions/deploy-pagesv5,actions/upload-artifactv4.with:inputs changed.actions/upload-pages-artifactv4.0.0 is a composite action. Its nestedactions/upload-artifactref is already pinned to a SHA.cachix/install-nix-actionis also composite and has no nested actions..github/dependabot.ymlfor thegithub-actionsecosystem. It checks weekly and waits 14 days before it proposes a new release.Follow-up
After merge, a repo admin can enable "Require actions to be pinned to a full-length commit SHA" in Settings → Actions → General.
Part of argotorg/todo#67
🤖 Generated with Claude Code