Attackers Bypass GitHub Actions SHA Pinning Using Fork Impostor Commits in Supply Chain Attacks

Pinning GitHub Actions to exact commit SHAs has long been considered a strong defense against supply chain threats, yet attackers have already developed techniques to circumvent it. In March 2026, the group that compromised the Trivy scanner inserted malicious code disguised as an official GitHub checkout action update, complete with a security-fix label. The same fork-sharing method was later used against actions-cool/issues-helper, resulting in credential theft from affected pipelines. While SHA pinning prevents tag movement, it cannot verify authorship or confirm that a commit originates from the upstream repository rather than a fork. GitHub’s new workflow lockfiles, generally available since October 2026, add deterministic dependency locking and require commits to exist on source-repository branches, but they still leave runtime image builds and commit provenance unaddressed. An upcoming webinar led by Erika Heidi of Chainguard will examine these remaining gaps and recommend additional controls such as vetted action catalogs.

The Hacker NewsTranslated from English

Read at source

GitHub Actions pinning to exact commit SHAs has become the standard defense against software supply chain attacks, yet attackers have already found ways to bypass it. In March 2026, the threat actors who compromised Trivy, a widely used open-source security scanner, planted malicious code that appeared to originate from GitHub’s official checkout tool and was even labeled as a security fix. Any workflow pinned to that SHA would have passed every automated check.

The technique exploits GitHub’s repository network, which allows forks to share code with the original project. The same method was used in May against the popular actions-cool/issues-helper action, resulting in credential theft from pipelines that executed the malicious commit. The core limitation is clear: pinning guarantees the code will not change, but it does not guarantee who authored the commit or that the commit resides in the upstream repository.

Immutability Is Not Provenance

SHA pinning earned its reputation after the tj-actions/changed-files compromise in March 2025, when tags were repointed to malicious commits across more than 23,000 repositories. Teams that had pinned to SHAs remained unaffected. GitHub now allows administrators to enforce pinning organization-wide. However, a pinned SHA still leaves three critical questions unanswered:

  • Authorship: A SHA does not reveal who wrote the commit; any fork commit can be pinned.
  • Project membership: Org-level enforcement only verifies that a reference is a 40-character SHA, not that the commit actually exists in the upstream project.
  • Runtime: Docker-based actions pinned to a SHA can still build images at runtime, pulling in unfrozen dependencies.

GitHub’s workflow lockfiles, released to general availability on 28 October 2026, tie every run to recorded commits for actions and their transitive dependencies. Locked commits must exist on a branch of the source repository, which reduces the risk of fork-only impostors. Nevertheless, the official changelog states that locking “does not determine whether the dependency itself is safe,” leaving commit authorship and runtime builds unresolved. Lockfiles are also not yet supported on GitHub Enterprise Server.

The upcoming webinar “GitHub Actions Security Beyond SHA Pinning,” led by Erika Heidi, Staff Developer Relations Engineer at Chainguard, will provide a detailed analysis of these remaining gaps and present additional mitigation strategies, including curated catalogs of vetted actions.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Supply Chain & OSS

StepSecurity Raises $20 Million Series A to Strengthen Software Supply Chain Defenses
Microsoft Agent Framework PyPI Package Compromised with Credential-Stealing Malware
Malicious Microsoft Agent Framework Releases on PyPI Steal Cloud and CI/CD Credentials