Hackers Circumvent GitHub SHA Pinning, Raising Concerns for Supply Chain Security
SHA pinning, the practice of locking GitHub Actions workflows to a precise commit hash to prevent supply chain attacks, has been bypassed by adversaries. In March 2026, attackers compromised Trivy, an open-source security scanner, injecting malicious code disguised as GitHub’s official checkout tool. A recent webinar addresses methods to mitigate this evolving threat.
What happened
SHA pinning on GitHub Actions is designed to ensure workflows use an exact version of code by referencing a specific SHA (commit hash), which has been a recommended best practice to block unauthorized code changes in supply chain attacks. However, in March 2026, attackers managed to bypass this security measure when they hijacked Trivy, a widely used open-source security scanner, and introduced malicious code. The malicious payload was crafted to appear as if it originated from GitHub's official checkout tool, further complicating detection.
Why it matters
This development challenges the perceived security provided by SHA pinning and highlights that even well-established defenses in software supply chains can be circumvented. Since supply chain attacks can silently compromise software used by thousands of organizations, the ease with which attackers disguised malicious code to appear legitimate increases risk for developers and enterprises relying on GitHub Actions. It underscores the necessity for continuous vigilance and layered defenses in open-source software supply chains.
What security teams should do
Security teams should carefully review the provenance of dependencies and tools integrated into their CI/CD pipelines and automate monitoring for any anomalous behavior or unexpected code changes. It is essential to keep abreast of updates or advisories related to tools like Trivy and GitHub Actions checkout components. Teams may also benefit from participating in educational webinars and adopting additional verification techniques beyond SHA pinning to harden their workflows against evolving tactics.
Key technical details
GitHub Actions SHA pinning involves hardcoding the commit SHA in workflow files to ensure exact code versions are used during automated runs. The bypass involved attackers hijacking the Trivy open-source security scanner by injecting malicious code within it. This malicious code was intentionally labeled to mimic GitHub's official checkout tool, enabling it to evade detection. The attack exploited trust in both the SHA pinned code and the perceived authenticity of the checkout action, thereby circumventing safeguards designed to prevent arbitrary code execution in CI pipelines.
Affected organizations/products
The attack specifically targeted Trivy, a widely used open-source security scanner integrated into many CI/CD processes. Any organizations or projects using the compromised version of Trivy in conjunction with GitHub Actions and relying solely on SHA pinning for supply chain security may be vulnerable to similar compromise attempts.
Source attribution
https://thehackernews.com/2026/11/hackers-found-way-around-github-sha.html