Skip to content

security: pin all GitHub Actions to commit SHAs - #103

Merged
GreenRover merged 1 commit into
masterfrom
security/pin-action-shas
Oct 5, 2026
Merged

GreenRover merged 1 commit into
masterfrom
security/pin-action-shas

Conversation

@TamimiGitHub

Copy link
Copy Markdown
Contributor

Summary

Pins every third-party GitHub Action from a mutable semver tag or branch ref to its exact commit SHA. This closes the mutable-tag supply-chain worm vector identified in the solacecommunity supply-chain preflight audit (2026-10-01).

What changed

Each uses: action@tag line is replaced with uses: action@<40-char-SHA> # tag. The original version tag is preserved as a comment so Dependabot can still parse and propose updates.

SolaceDev/solace-public-workflows @main references are intentionally left unchanged per project policy.

Why this matters

A semver tag (e.g. @v7) is mutable — the upstream maintainer (or a supply-chain attacker) can push new code to that tag and every CI run that resolves it will execute that code with full access to the job's secrets and GITHUB_TOKEN. Pinning to a SHA makes the exact code immutable: the CI run will fail rather than silently execute changed code.

Keeping pins fresh

After merging, add a github-actions ecosystem entry to .github/dependabot.yml (if not already present) — Dependabot reads the # tag comment and will open automated PRs when a new SHA is available for that version.


🤖 Generated with Claude Code

Pins every third-party action from a mutable semver tag or branch
ref to its exact commit SHA to close the mutable-tag supply-chain
attack vector identified in the solacecommunity supply-chain
preflight audit (2026-10-01).

Each SHA is annotated with its original version tag as a comment
so Dependabot can still parse and update it. SolaceDev/
solace-public-workflows @main references are left unchanged.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@TamimiGitHub
TamimiGitHub requested review from Marcarrian and gobeli and removed request for gobeli October 1, 2026 15:56
@GreenRover
GreenRover merged commit c4c4a07 into master Oct 5, 2026
19 checks passed
@GreenRover
GreenRover deleted the security/pin-action-shas branch October 5, 2026 10:40
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.

3 participants