pinact
Rewrites uses: references in workflows to full commit SHAs with the version kept as a comment.
github.com/suzuki-shunsuke/pinact ↗- Stars
- ★ 1,248
- License
- MIT
- Language
- Go
- Latest release
- v5.0.2 · 25 Oct 2026
- Last push
- 30 Oct 2026
- OpenSSF Scorecard
- Not in the weekly scan
The simplest way to bulk-pin a repository's actions to SHAs, maintained by a prolific Actions tool author.
Note: this page is AI generated. Read the tool's own repository and documentation, linked at the bottom, before you rely on it.
How it works
pinact is a Go CLI that finds every uses: line in workflow and action files, resolves the tag or branch to a commit through the GitHub API, and rewrites the line as owner/repo@<sha> # vX.Y.Z. The trailing comment is the format Dependabot and Renovate understand, so they can keep the pins current afterwards.
It can also update pins to the latest release, and a check mode exits non-zero when something is unpinned, so it works as a CI guard.
What it catches
- Tag and branch references in workflows and composite actions
- Pins without a version comment
- Out-of-date pins, when run with update
Run it
brew install suzuki-shunsuke/pinact/pinact
pinact runWhat leaves your machine
Calls the GitHub API to resolve tags to SHAs. Set GITHUB_TOKEN to avoid the unauthenticated rate limit.
Limits
- Only pins the top-level uses: line. Nested actions inside a composite action stay as their author wrote them.
- Does not check that a SHA is reachable from the real repository; zizmor's impostor-commit audit does.
Links
Related tools
Related incidents
GitHub stats as of 30 Oct 2026. How ratings work.