Pin GitHub Actions to full commit SHAs for supply-chain security#1967
Merged
Pin GitHub Actions to full commit SHAs for supply-chain security#1967
Conversation
Pin mutable tag references to their corresponding commit SHAs to ensure reproducible builds and protect against tag hijacking. Actions pinned: - actions/checkout@v6 -> de0fac2e4500dabe0009e67214ff5f5447ce83dd (v6.0.2) - Ana06/get-changed-files@v2.3.0 -> 25f79e676e7ea1868813e21465014798211fad8c - robinraju/release-downloader@v1.12 -> daf26c55d821e836577a15f77d86ddc078948b05 - actions/setup-python@v6 -> a309ff8b426b58ec0e2a45f0f869d46889d02405 (v6.0.0)
Contributor
There was a problem hiding this comment.
Pull request overview
Pins GitHub Actions uses: references in existing CI workflows to full commit SHAs to improve supply-chain security and build reproducibility, aligning with the Rancher security recommendation described in the PR.
Changes:
- Replace mutable GitHub Actions tags with full commit SHAs in the test-environment-cleaner validation workflow.
- Replace mutable GitHub Actions tags with full commit SHAs in the sumaform validation workflow (including third-party actions used there).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/test-environment-cleaner-validation.yml | Pins actions/checkout and actions/setup-python to full SHAs. |
| .github/workflows/sumaform-validation.yml | Pins actions/checkout, Ana06/get-changed-files, and robinraju/release-downloader to full SHAs (other actions already pinned). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
nodeg
approved these changes
Mar 31, 2026
ktsamis
approved these changes
Mar 31, 2026
srbarrios
approved these changes
Apr 1, 2026
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.
Requirement recommended by Rancher security team, citing: