Guide · updated Nov 30, 2026
Pin every Action to a commit SHA.
A tag like @v4 can be repointed to new code at any time; a full commit SHA can't.
highlights · fix ready
Move @xmldom/xmldom to 0.8.15.
- "@xmldom/xmldom": "0.7.13"
+ "@xmldom/xmldom": "0.8.15"
- Verify passedinstall, build, 212 tests · 41 s
- Rescan cleanall 15 advisories gone
- Blast radiusbuild tools only, nothing in the app
Step by step
Find unpinned actions
Any uses: line without a 40-character SHA follows a tag or branch.
grep -rn 'uses:' .github/workflows | grep -vE '@[0-9a-f]{40}'Look up the commit for a tag
Ask GitHub which commit the tag points to today.
gh api repos/actions/checkout/commits/v5 --jq .shaPin it, keep the version as a comment
The comment tells people and update bots which release it is.
- uses: actions/checkout@<40-char sha> # v5Keep pins up to date
Dependabot and Renovate both update SHA pins and their version comments.
Enforce it for the org
In the org's Actions settings, require actions to be pinned to a full-length commit SHA, and allow only the actions you use.
Check every workflow in CI
zizmor flags unpinned uses, script injection and over-broad tokens.
zizmor .github/workflows
Or let IonCipher do it.
IonCipher's free Actions hardening PR pins every action in a repo to a commit, trims token permissions and fences pull_request_target, in one PR.
More guides
How to remove a secret from git history
Rotate the key first, then rewrite every commit that holds it with git filter-repo, force-push and ask GitHub to drop cached views..
Leaked API key: what to do in the first hour
A leaked API key, in order: revoke it, read the provider's logs since the leak, find every copy, redeploy with the new key, then clean the history..
GitHub Actions security checklist
Twelve checks for GitHub Actions: SHA pins, read-only tokens, pull_request_target, script injection, secrets, runners, OIDC and alerts on change..
A Dependabot alternative that batches PRs
Dependabot can group updates; here's the config.
Your first fix, on your phone tonight.
Connect GitHub; the first scan of every repo finishes in minutes.