Skip to content

ci: pin GitHub Actions to full commit SHAs#5

Merged
Tazer merged 1 commit into
mainfrom
security/pin-actions-to-sha
May 21, 2026
Merged

ci: pin GitHub Actions to full commit SHAs#5
Tazer merged 1 commit into
mainfrom
security/pin-actions-to-sha

Conversation

@Tazer

@Tazer Tazer commented May 21, 2026

Copy link
Copy Markdown
Member

What

Pins all third-party (and in-org composite) GitHub Action uses: references to a full-length 40-character commit SHA, with the original tag preserved in a trailing comment that Dependabot reads for updates.

Why

Org-wide supply-chain hardening: the enterprise "require actions pinned to a full-length commit SHA" policy is enforcing, so any workflow with tag-pinned refs will fail CI. Mutable tags can also be repointed to a malicious commit by an attacker who compromises an action's repo (see the recent Megalodon campaign — 5k+ repos backdoored in a 6-hour window).

Behaviour change

None. Each action runs at the same commit as the tag it was already on.
Generated by pinact.

Part of org-wide supply-chain hardening. Pinning all action references
to immutable 40-character commit SHAs so a compromised upstream tag
cannot silently affect our CI. The trailing # vX.Y.Z comment preserves
the human-readable version for Dependabot.

Generated by pinact.
@gitstream-cm

gitstream-cm Bot commented May 21, 2026

Copy link
Copy Markdown

🚨 gitStream Monthly Automation Limit Reached 🚨

Your organization has exceeded the number of pull requests allowed for automation with gitStream.
Monthly PRs automated: 250/250

To continue automating your PR workflows and unlock additional features, please contact LinearB.

@Tazer Tazer merged commit f5d4a26 into main May 21, 2026
3 checks passed
@Tazer Tazer deleted the security/pin-actions-to-sha branch May 21, 2026 20:35
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.

1 participant