Pin GitHub Actions to commit SHAs for improved security #42
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
Pin all GitHub Actions dependencies to their full commit SHAs instead of mutable version tags to mitigate supply chain attacks.
Changes
actions/checkout@v6→actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8ruby/setup-ruby@v1→ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8Why
Using version tags (e.g.,
@v6) leaves workflows vulnerable to supply chain attacks, as tags are mutable and can be modified by attackers who gain write access to an action's repository. Pinning to commit SHAs ensures immutable references.See: CVE-2025-30066