GitHub Actions pin checker
Paste a GitHub Actions workflow and see which actions are pinned to a full commit SHA and which follow a movable tag or branch. Resolve a tag to its SHA.
A file from .github/workflows, or an action.yml. It is read in your browser and never sent anywhere.
This tool asks the GitHub REST API directly from your browser. It sends nothing while it checks the workflow, which is read in your browser and is not sent. Only when you press the button to resolve a tag does it send the owner, the repository and the tag of that one action to api.github.com, which allows 60 such requests an hour without an account, and nothing is sent to HardenKit.
How to use the GitHub Actions pin checker
- Paste a workflow file from .github/workflows, or load the example.
- Read the list: branches first, then tags, then what is already pinned.
- Choose an action under “Resolve a tag to its commit SHA” and press the button.
- Check the commit on GitHub, then replace the line in your workflow with the pinned one.
About this tool
Every uses: line in a workflow runs someone else’s code inside your pipeline, next to your secrets and with your repository token. The part after the @ decides which code. A branch such as main is whatever was pushed last. A tag such as v4 looks fixed but is a pointer its owner can move. Only a full commit SHA, forty hexadecimal characters, always means the same code.
That is not theory. In March 2025 attackers who had taken over the tj-actions/changed-files action moved its version tags to a commit that printed CI secrets into the build logs (CVE-2025-30066). Workflows that used @v45 ran the malicious code on their next run; workflows pinned to a SHA did not. GitHub’s own hardening guide calls a full-length SHA the only way to use an action as an immutable release.
This checker lists every uses: line and says whether it is pinned to a SHA, a tag, a branch or a Docker tag or digest. For a tag it can ask GitHub which commit the tag points to now, and writes the pinned line with the tag kept as a comment. It is a set of rules and does not replace a review. HardenKit Scan also checks the GitHub Actions workflows of a project from the command line.
Sources
Questions
Because a SHA cannot be pointed at other code. Tags and branches can be moved by the maintainer or by anyone who compromises the maintainer’s account, and your workflow would run the new code with its secrets. A SHA turns that silent change into a visible pull request.
The risk is lower, since GitHub maintains them, and many teams accept tags for the actions organization. The mechanism is the same though: a tag can move. Pinning everything is the simpler rule, and GitHub lets an organization require it by policy.
Keep the version as a comment after the SHA, as in @11bd719… # v4.2.2. Dependabot and Renovate both understand that form and open pull requests that change the SHA and the comment together when a new release appears.
Nothing, unless you press the resolve button. Then it requests one address at api.github.com that contains the owner, the repository and the tag of the action you chose. The workflow text is not sent. Without an account GitHub allows 60 such requests an hour per IP address.
No. GitHub accepts only the full 40-character SHA as a commit reference in uses:. A shorter value is looked up as a branch or tag name, so it either fails or resolves to something an attacker could create.