chore: pin GitHub Actions to commit SHA#150
Open
quentin-laplanche-docker wants to merge 1 commit intomainfrom
Open
chore: pin GitHub Actions to commit SHA#150quentin-laplanche-docker wants to merge 1 commit intomainfrom
quentin-laplanche-docker wants to merge 1 commit intomainfrom
Conversation
-e Signed-off-by: Quentin Laplanche <quentin.laplanche@docker.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.
What
This Pull Request pins all GitHub Actions references in workflow files from mutable tags (e.g.
v4,latest) to their corresponding full-length commit SHAs, with the original tag preserved as an inline comment for readability.Before:
After:
Important
No functional behavior changes — workflows will run the exact same action code as before.
Why
Mutable tags (like
v4orlatest) can be force-pushed to point to a different commit at any time. Pinning to a full SHA ensures:Note
Where mutable references were used (e.g.
v4,latest), the SHA corresponds to the commit the reference pointed to on April 16th, 2026 at 11:30 AM UTC.How this was done
Changes were generated automatically by the Docker security team using internal tooling that resolves each action tag to its corresponding commit SHA via the GitHub API and rewrites the workflow files.
Every third-party action used across the org has been individually security-reviewed before pinning.
How to review
uses:line now references a full 40-character SHA# vXcomments match the original tags that were pinnedPlease feel free to edit this pull request !
Warning
If anything looks incorrect or unexpected, or if you have questions, reach out to #help-security on Slack before merging.
Note
If you need to update a pinned action in the future, update both the SHA and the inline comment.