Skip to content

Pin all GitHub Actions to SHA refs#72

Merged
BOGLE1 merged 1 commit intocandidate/rb20251028from
security/pin-actions-to-sha
Mar 10, 2026
Merged

Pin all GitHub Actions to SHA refs#72
BOGLE1 merged 1 commit intocandidate/rb20251028from
security/pin-actions-to-sha

Conversation

@phenggeler
Copy link
Copy Markdown

Summary

  • Pin all GitHub Actions from mutable tags to immutable SHA commit refs
  • Prevents tag-moving supply chain attacks (e.g., xygeni/xygeni-action, tj-actions/changed-files compromises)
  • Covers all 3 workflow files: build.yml, release.yml, test.yml

Changes

  • Pin 37 action references (17 unique action+version pairs) across 3 workflow files
  • Third-party: docker/*, rui314/setup-mold, svenstaro/upload-release-action, astral-sh/setup-uv
  • GitHub first-party: actions/checkout, actions/cache, actions/setup-go, actions/setup-node, actions/setup-python, actions/upload-artifact, actions/download-artifact
  • Original version tags preserved as inline comments for readability

Test plan

  • Build workflow still passes (triggered on tag push)
  • Test workflow still passes (triggered on PR/push to main)
  • Release workflow still passes (triggered on tag push)
  • No functional changes — only reference format changes

🤖 Generated with Claude Code

Replaces mutable version tags (e.g., @v4) with immutable SHA commit
references across all 3 workflow files (build.yml, release.yml, test.yml).

This prevents tag-moving supply chain attacks where a compromised
maintainer or attacker could point a mutable tag at malicious code
(as seen in the xygeni/xygeni-action and tj-actions/changed-files
incidents).

Original version tags are preserved as inline comments for readability.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@BOGLE1 BOGLE1 merged commit ad149b9 into candidate/rb20251028 Mar 10, 2026
8 checks passed
@BOGLE1 BOGLE1 deleted the security/pin-actions-to-sha branch March 10, 2026 15:34
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.

2 participants