A workflow that names an action by tag runs whatever commit the tag points at on the day of the run, and the tag can be moved. To pin GitHub Actions to a commit SHA is to write the 40-character commit in place of the tag, as the 0.6.0 pull request of KEIBIDROP now does. Pull request 243 names all 48 of its GitHub Actions references by commit, where main names 40 by tag, and none of its 15 checkouts keeps the token; counted on 29 November 2026. It also checks each direct download by SHA-256, while the apt packages and Homebrew's protobuf stay unpinned on both.
A tag can move, and a run takes the commit it points at that day
A step such as uses: actions/checkout@v7 names a tag in the action's repository. When the job starts, GitHub resolves the tag to the commit it points at on that day and runs that commit. GitHub's own guide to secure use puts the risk this way:
"Note that there is risk to this approach even if you trust the author, because a tag can be moved or deleted if a bad actor gains access to the repository storing the action."
A commit SHA names one commit, so a run next year fetches the code that was reviewed this year. zizmor, a static checker for workflow files, states the same mechanism in its audit for unpinned references:
"If a repository reference is pinned via branch or tag (i.e. a "symbolic reference") instead of a SHA reference, GitHub Actions will use whatever commit is at the tip of that branch or tag."
Main named 40 action references by tag, and the pull request names all 48 by commit
The pull request moves every action reference from a tag to a commit. We counted the uses: lines in the workflow files of main at a76c1ea and of the head of pull request 243, on 29 November 2026 and again on 30 November, with the same result. All 40 references on main name a tag, while the 48 at the head name a 40-character commit with the version kept as a comment after it. The pull request's description puts the change in one line:
"CI pins each action to a commit hash."
| Count in the workflow files | main | Pull request 243 |
|---|---|---|
| Workflow files | 6 | 7 |
| Action references by tag | 40 | 0 |
| Action references by 40-character commit | 0 | 48 |
Local reusable workflows (./.github/workflows/...) | 2 | 2 |
Workflows with a top-level permissions: block | 5 of 6 | 7 of 7 |
actions/checkout steps | 12 | 15 |
Checkouts with persist-credentials: false | 0 of 12 | 15 of 15 |
Counts of text in the files at each ref. The seventh workflow at the head runs the compatibility matrix, which is new in the pull request.
None of the 15 checkouts keeps the token for later steps
All 15 checkouts of the pull request set persist-credentials: false, and all 7 of its workflows open with a top-level permissions block. By default actions/checkout keeps the job's token in the repository's local git config, so that later steps can run authenticated git commands until the job ends. Its README names persist-credentials: false as the way to turn that off (actions/checkout, checked on 30 November 2026). On main, all 12 checkouts kept the token. At the head, all 15 turn it off, so a build script or a third-party action that runs later in the same job finds no token in the git config.
The permissions block at the head reads permissions: contents: read in all 7 workflows. On main, 5 of 6 workflows had a permissions block, and ci.yml had none.
Each direct download is checked by SHA-256, and apt, Homebrew and rustup still follow the runner
The pull request checks each direct download by SHA-256 and pins its Chocolatey packages, one gem and its Docker base images, while apt, Homebrew's protobuf and the Rust toolchain still follow the runner. We listed each kind of fetch at both refs, from the workflow files, the Dockerfiles and the Windows installer script that release.yml runs.
| What the pipeline fetches | main | Pull request 243 |
|---|---|---|
| GitHub Actions | 40 references by tag | 48 references by commit |
Direct downloads with curl | 2 files (the macFUSE 5.1.3 disk image, mcp-publisher 1.8.1), none checked | 3 files (the same two and the WinFsp 2.2.26323 installer), each checked by SHA-256 |
| Chocolatey packages | 5, none pinned | 5, each pinned by version |
The gem package_cloud | unpinned | pinned, -v 0.3.15 |
Go tools by go install | 2 of 2 by version | 2 of 2 by version |
| Docker base images | 3, by tag | 3, by digest |
apt-get install steps | 6, no version | 8, no version |
Homebrew's protobuf | unpinned | unpinned |
rustup target add | 4 steps, the runner's stable toolchain | 4 steps, the runner's stable toolchain |
Read from the files at main a76c1ea and at the head of the pull request on 29 and 30 November 2026. A checked download carries its hash beside the URL, and the step fails when the file differs:
curl -L -o /tmp/macfuse.dmg "https://github.com/macfuse/macfuse/releases/download/macfuse-5.1.3/macfuse-5.1.3.dmg"
echo "e5f80ff8c3df826e997fb786b35125a0c6a672f4bba2770b0def6ba63ca4ef81 /tmp/macfuse.dmg" | shasum -a 256 -c -
The apt packages, Homebrew's protobuf and the Rust toolchain take whatever version the runner image and the package index hold on the day of the run, and the pull request pins or checks everything else in the table.
The scanners report nothing above a low note on the result
We ran two static checkers over the workflow files at the head on 30 November 2026. zizmor 1.33.1, in its offline mode, reported 3 low notes, 0 medium and 0 high. The low notes are two local reusable workflows called as ./.github/workflows/..., where zizmor prefers GitHub's self-repository syntax, and one gem installed without a lockfile. actionlint 1.7.12, with shellcheck 0.11.0, reported nothing. CodeQL's queries for Actions returned no result on the pull request when we ran them on 29 November 2026.
A pinned step carries the commit and a comment with the tag
The same step in ci.yml, on main and at the head of the pull request:
# main
- uses: actions/checkout@v7
# pull request 243
permissions:
contents: read
...
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
The comment keeps the version readable for a person, and the pull request's .github/dependabot.yml asks for weekly updates of the github-actions ecosystem, so a pin does not stay on an old release by itself. To check a pipeline of your own:
uvx zizmor --offline .github/workflows
actionlint
The docs hold the app's own security model, from the handshake to the relay: keibidrop.com/docs/explanation/security-model.html.
Limits. The apt packages and Homebrew's protobuf are unpinned on both refs, and rustup target add follows the runner's stable toolchain. In the Docker builds the base images are pinned by digest, so there the base layer is fixed.
A pin fixes the action that the workflow names. It does not fix the actions that the named action calls inside it. GitHub's guide names a workflow dependency lockfile, which records the commit of every action a workflow depends on, as the strongest protection; the pull request does not use one (checked on 30 November 2026).
The repository does not yet require pins: main still names its actions by tag, and the setting would stop those runs. It can be turned on once the pull request is merged.
A repository setting can require pins, and a lockfile covers the actions an action calls
What is sha pinning?
SHA pinning means naming a GitHub Action by the 40-character SHA of one commit instead of by a tag such as v7. A tag can be moved to another commit, and a workflow that names it runs the new commit on its next run, while a commit SHA names the same code for as long as the commit exists.
How to secure GitHub Actions?
Name each action by a full commit SHA, give each workflow a top-level permissions: contents: read, and set persist-credentials: false on each checkout that does not push. Check each file you download by SHA-256, and run zizmor and actionlint over the workflow files. GitHub's secure use reference adds a workflow dependency lockfile, where a repository can adopt one.
Require actions to be pinned to a full-length commit SHA
The setting is in the Actions settings of a repository or an organization. When it is on, GitHub runs an action only if the workflow pins it to a full-length commit SHA, and that includes actions authored by GitHub, while reusable workflows can still be named by tag.
A step that still names a tag stops running, so pin every workflow before you turn the setting on (GitHub Docs, checked on 30 November 2026).