Skip to content

Pin GitHub Actions to full commit SHAs for supply-chain security#1967

Merged
szachovy merged 1 commit intomasterfrom
pin-github-actions-sha
Apr 1, 2026
Merged

Pin GitHub Actions to full commit SHAs for supply-chain security#1967
szachovy merged 1 commit intomasterfrom
pin-github-actions-sha

Conversation

@szachovy
Copy link
Copy Markdown
Member

Requirement recommended by Rancher security team, citing:

GitHub Actions references like uses: actions/checkout@v4 point to mutable tags that can be overwritten. Pinning to a full commit SHA (uses: actions/checkout@b4ffde6...) ensures reproducible builds and protects against supply-chain attacks such as tag hijacking.

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)
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@szachovy szachovy merged commit d7160a8 into master Apr 1, 2026
10 checks passed
@szachovy szachovy deleted the pin-github-actions-sha branch April 1, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants