Hackers Just Broke GitHub's Favorite Security Defense

·
Listen to this article~4 min
Hackers Just Broke GitHub's Favorite Security Defense

SHA pinning was supposed to lock down GitHub Actions. Hackers found a way around it in the Trivy hijack—here's how the gap opened and what closes it.

Pinning GitHub Actions to an exact version of their code—what people call SHA pinning—has quietly become the go-to defense against software supply chain attacks. It's the thing security folks tell you to do first. And attackers have already found a way around it. In March 2026, the hackers who hijacked Trivy, a widely used open-source security scanner, planted malicious code that looked like it came from GitHub's official checkout tool. They even labeled it to blend in with the real thing. That's the part that should make you pause. ### What SHA pinning actually protects you from Let's back up for a second, because this matters. When you pin an action to a commit SHA, you're basically locking the door to one specific version of that code. If someone sneaks in a change later, your workflow ignores it. Same code, every time. It's a solid idea, and it's saved plenty of teams from nasty surprises. But here's the catch. Pinning only guards the *reference*. It doesn't guard what happens once that code starts running. ### Where the gap opens up The Trivy incident shows the playbook clearly. The attackers didn't break the pin. They didn't need to. Instead, they slipped malicious code into a place the pinned action trusted—something it pulled in downstream. The pin held firm. The damage still happened. Think of it like a locked front door. Great. But if the delivery guy has a key to the back, the lock on the front doesn't do much. A few things attackers are exploiting right now: - Dependencies that the pinned action fetches at runtime - Environment variables and secrets the workflow exposes - Tooling that resolves references *after* the pin is checked - Build steps that trust whatever shows up in the pipeline ### Why this webinar is worth your time This isn't a "panic and rewrite everything" situation. It's a "close the gap before someone else finds it" situation. The webinar walks through exactly how the Trivy hijack worked, step by step, and then shows where teams can add checks that actually catch this stuff. > The pin was never the problem. The problem was trusting everything the pin touched. You'll see how to verify what your workflows pull in at runtime, how to spot the kind of lookalike code the Trivy attackers planted, and how to layer defenses so one failure doesn't take down the whole pipeline. ### What you can do today You don't have to wait for the webinar to start tightening things up: - Audit which actions fetch external resources during a run - Review anything your workflow trusts implicitly—especially tooling that mimics official sources - Limit what secrets each step can reach - Add runtime checks, not just pinning checks If you're running GitHub Actions in production, this is the kind of gap that keeps security teams up at night. The good news? It's fixable. You just have to know where to look—and this is the conversation that shows you.