pin-gh-actions
Installation
SKILL.md
/pin-gh-actions — Pin GitHub Actions to Commit SHAs
Pin all external GitHub Actions from mutable tags (e.g. @v4) to immutable commit SHAs
and ensure dependabot keeps them updated.
Steps
-
Find all workflow and action files:
- Glob
.github/workflows/*.ymland.github/workflows/*.yaml - Glob
.github/actions/**/action.ymland.github/actions/**/action.yaml
- Glob
-
Install the tool (if not already available):
npm install -g pin-github-action -
Pin each file — use
GITHUB_TOKENso private/org actions resolve: