Documentation
¶
Overview ¶
Command actionpin refuses a GitHub Actions `uses:` that is not pinned by full commit SHA.
WHY A TAG IS NOT A PIN ¶
`uses: actions/checkout@v7` names a movable reference. Whoever can move that tag, or whoever compromises the account that can, runs new code in the workflow with its token: read access to the repository, and write scope in a release or Pages job. A 40-hex commit SHA cannot be moved. The tag stays in a trailing comment (`uses: actions/checkout@<sha> # v7`) so that a reader, and Renovate's helpers:pinGitHubActionDigests, can tell which release it is.
WHAT IT CHECKS ¶
Every `uses:` in .github/workflows/*.yml|yaml and in .github/actions/*/action.yml|yaml:
- a local reference (`./path`) is fine: it is this repository's own code;
- `docker://image@sha256:<64 hex>` is fine, `docker://image:tag` is not;
- anything else must be `owner/repo[/path]@<40 hex>` followed by a `# comment` naming the tag. A SHA with no comment is refused too, because the comment is what a bump rewrites; without it the pin is unreadable and unmaintainable.
WHAT IT REFUSES TO REPORT AS PASSING ¶
A directory with no workflow file is an error, not a pass: a scan that read nothing looks exactly like a clean repository. It reads files, never the network, so it needs no token and cannot tell whether a SHA exists.