SHA pinning, which means referencing a GitHub Action by an exact commit instead of a tag, is widely used as a defense against software supply chain attacks. According to The Hacker News, in an article published on November 24, 2026, attackers have already found a way around it.
This guide walks through how to review your own GitHub Actions pipelines for that gap. By the end, you should know what pinning guarantees, what it leaves open, and which controls to look at next. You need access to your workflow files and, ideally, your organization's GitHub Actions policy settings.
Note that the source is a contributed piece from a partner promoting a webinar, so it describes the problem and the questions to ask rather than giving a full configuration walkthrough. Where the source does not give a command or setting, this guide leaves it out. That means some steps below are checks you perform yourself, not commands you can copy and run.
Step 1: Understand what pinning protects
Pinning earned its reputation. The source describes an incident in March 2025, when the tj-actions/changed-files compromise moved existing tags so they pointed at a malicious commit. More than 23,000 repositories were exposed to that change, yet teams that had pinned their actions to SHAs were not affected.
GitHub now lets administrators enforce pinning as an organization-wide policy. So the first step is simple: confirm that your third-party actions are pinned to a full commit SHA and not to a movable tag.
Step 2: Learn how the pinning bypass works
The Hacker News describes a technique that works because GitHub lets forks, which are copies of a project, share code with the original repository. Here is the case the source gives for March 2026. Attackers took over Trivy, a widely used open-source security scanner, and added malicious code made to look as though it came from GitHub's official checkout tool. They labeled it a security fix. According to the source, teams pinned to it would have passed every check.
In May, the same technique reportedly hit the actions-cool/issues-helper tool and stole credentials from the pipelines that ran it.
The lesson, in the source's words, is that pinning guarantees the code will not change, but not who wrote it.
Step 3: Check the three questions a pinned SHA leaves open
For each third-party action in your workflows, ask:
- Authorship: A SHA gives you no information about the person who authored the commit, and a commit from any fork can be pinned.
- Project membership: Organization-level enforcement only verifies that a reference has the format of a 40-character SHA. Whether the commit really belongs to the upstream project is a separate question that this check does not answer.
- Runtime: An action that runs in Docker and is pinned to a SHA may still assemble its image while it executes. That step can bring in dependencies that were never frozen.
The source adds that with agentic development pushing more code through CI, each of these gaps is exercised more often and reviewed less closely.
Step 4: Use workflow lockfiles, and know their limits
GitHub's 2026 Actions security roadmap, published on March 26, put deterministic dependency locking front and center. According to the source, workflow lockfiles entered public preview on October 14 and became generally available on October 28, 2026.
With a lockfile, each workflow run is bound to specific recorded commits, covering both the actions and what they depend on indirectly, and a tag that moves afterward has no effect. The source also says that a locked commit has to be present on a branch in the repository it comes from, and that this requirement makes it harder for impostor commits that exist only in forks.
Step 5: Look at other ways to close the trust gap
The webinar described in the source also covers other options, including a curated catalog of vetted actions. The source does not give setup steps for these, so check the session or the vendor's documentation for details.
Common problems and limits
The source is clear about what these controls do not solve:
- GitHub's own changelog says that locking cannot tell you whether the dependency itself is safe.
- Who authored a commit, and what gets built at runtime, are still unresolved even with lockfiles.
- Immutable releases help only if the maintainers choose to adopt them.
- Lockfiles are not currently supported on GitHub Enterprise Server.
- Org-level pin enforcement can create false confidence, because it checks the format of the reference and not where the commit came from.
What to do next
- List every third-party action your workflows use and confirm each is pinned to a full SHA.
- Check whether each pinned commit belongs to the upstream project and not to a fork.
- Identify Docker-based actions, since they can still build at runtime.
- Evaluate workflow lockfiles if you are not on GitHub Enterprise Server.
- Treat pinning as one control, not the finish line.
- Review each action's maintainers and release practices, since commit authorship is not covered by pinning or locking alone.
Final thoughts
SHA pinning remains worth doing, but it answers only one question: whether the code will change. It does not tell you who wrote it, whether it belongs to the upstream project, or what it pulls in at runtime.
Reviewing those three gaps, and adding lockfiles where they are available, gives a clearer picture of what your pipelines actually trust. Pinning is a solid first layer, and the checks above help you see what it leaves unverified.
