ci: pin GitHub Actions to commit SHA for security#790
Open
EricGrill wants to merge 1 commit intoACINQ:masterfrom
Open
ci: pin GitHub Actions to commit SHA for security#790EricGrill wants to merge 1 commit intoACINQ:masterfrom
EricGrill wants to merge 1 commit intoACINQ:masterfrom
Conversation
Pin all GitHub Actions to specific commit SHAs instead of mutable tags to prevent supply chain attacks through: - Malicious commits to existing tags - Tag hijacking/deletion - Upstream repository compromise Actions pinned: - actions/checkout: v2.7.0 -> ee0669bd1cc54295c223e0bb666b733df41de1c5 - actions/cache: v4.3.0 -> 0057852bfaa89a56745cba8c7296529d2fc39830 - actions/setup-java: v1.4.4 -> b6e674f4b717d7b0ae3baee0fbe79f498905dfde - actions/upload-artifact: v4.6.2 -> ea165f8d65b6e75b540449e92b4886f43607fa02 Version comments added above each action for maintainability. Dependabot can automatically update these SHAs when new versions are released. Fixes ACINQ#716 Co-Authored-By: Claude Opus 4.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.
Summary
Motivation
Using version tags for GitHub Actions introduces security risks:
Pinning to commit SHAs ensures the exact code that was audited continues to run.
Changes
ee0669bd1cc54295c223e0bb666b733df41de1c50057852bfaa89a56745cba8c7296529d2fc39830b6e674f4b717d7b0ae3baee0fbe79f498905dfdeea165f8d65b6e75b540449e92b4886f43607fa02Test plan
Fixes #716
Generated with Claude Code