News for hackers. Stuff that matters.
Re:How to Harden GitHub Actions: The Unofficial Guide by ratrocket on Thursday May 08, 2025 @09:26AM (#43925919)
Depending on your circumstances (and if the license of the action allows it) it's "easy" to fork the action and use your own fork. Instant "pinning".
Re:How to Harden GitHub Actions: The Unofficial Guide by carlmr on Thursday May 08, 2025 @09:57AM (#43926143)
But how does that solve the issue with the forked action not using pinned versions itself.

You need to recursively fork and modify every version of the GHA and do that to its sub-actions.

You'd need something like a lockgile mechanism to prevent this.

Re:How to Harden GitHub Actions: The Unofficial Guide by ratrocket on Thursday May 08, 2025 @03:23PM (#43930283)
Yes, that is completely true -- transitive dependencies are a problem. What I suggested only works in the simplest cases and isn't a great solution, more of a bandaid.