chore: pin GitHub Actions to SHA for supply chain security#325
Open
kimyouknow wants to merge 3 commits intomainfrom
Open
chore: pin GitHub Actions to SHA for supply chain security#325kimyouknow wants to merge 3 commits intomainfrom
kimyouknow wants to merge 3 commits intomainfrom
Conversation
Pin all third-party GitHub Actions to full commit SHAs instead of floating version tags to prevent supply chain attacks. Add dependabot configuration with grouped updates to automatically keep SHAs current.
The SHA-pinned v2.0.1 requires explicit repo-token input unlike the floating v2 tag which had a default value.
v2.0.1 (2020) does not support Yarn 4, causing CI failure. Pin to v2.9.0 which matches the previously used floating v2 tag.
Contributor
|
Size Change: 0 B 🆕 Total Size: 0 B |
Collaborator
|
what is this task for? |
Collaborator
Author
|
This task pins all third-party GitHub Actions to full-length commit SHAs instead of mutable version tags (e.g., @.v5) to strengthen supply chain security. Git tags are aliases that repo owners can reassign to a different commit at any time, which means malicious code could be injected and silently executed in CI. Commit SHAs are immutable, ensuring only the exact reviewed code runs. |
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
@v5,@v6, etc.) to prevent supply chain attacksdependabot.ymlwith grouped weekly updates to automatically keep SHAs currentPinned Actions
actions/checkout93cb6efe...actions/setup-node6044e13b...changesets/action6a0a831f...peter-evans/create-pull-request22a90890...dorny/paths-filterde90cc6f...codecov/codecov-action671740ac...preactjs/compressed-size-action8518045e...Dependabot
groupsconfigNext step
Test plan