Skip to content

chore(ci): pin GitHub Actions to full commit SHAs - #2

Merged
lua-stefan-kruger merged 1 commit into
mainfrom
chore/pin-actions-to-sha
Aug 6, 2026
Merged

chore(ci): pin GitHub Actions to full commit SHAs#2
lua-stefan-kruger merged 1 commit into
mainfrom
chore/pin-actions-to-sha

Conversation

@lua-stefan-kruger

Copy link
Copy Markdown
Contributor

What

Automated supply-chain hardening: repins every GitHub-Action uses: (workflows + composite actions) from a mutable tag/branch to the full 40-char commit SHA it resolves to right now, keeping the tag as a # <tag> comment.

Pinned 8 reference(s).

Why

A @v4 tag is mutable — whoever controls it can repoint it at different code that then runs in CI with our secrets (OWASP CICD-SEC-4). A SHA is immutable. Prerequisite for the org-wide 'require actions pinned to a full-length commit SHA' policy.

Safety

  • Zero behaviour change — each SHA is the exact commit the tag points at today.
  • Dependabot/Renovate still work via the # <tag> comment.
  • Mechanical diff — only uses: lines changed.

Generated with Claude Code

Automated supply-chain hardening (OWASP CICD-SEC-4). Every action uses: is
repinned from its mutable tag to the 40-char commit SHA it resolves to today
(identical code, immutable). Original tag kept as # <tag> comment for
Dependabot. Pinned 8 reference(s). No behavioural change.
@lua-stefan-kruger
lua-stefan-kruger merged commit fde4406 into main Aug 6, 2026
2 of 7 checks passed
@lua-stefan-kruger
lua-stefan-kruger deleted the chore/pin-actions-to-sha branch August 6, 2026 19:12
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