logoalt Hacker News

AdrienPoupatoday at 3:41 AM1 replyview on HN

Don't forget to pin your GitHub Actions to SHAs instead of tags, that may or may not be immutable!


Replies

woodruffwtoday at 4:00 AM

Frustratingly, hash pinning isn’t good enough here: that makes the action immutable, but the action itself can still make mutable decisions (like pulling the “latest” version of a binary from somewhere on the internet). That’s what trivy’s official action appears to do.

(IOW You definitely should still hash-pin actions, but doing so isn’t sufficient in all circumstances.)

show 2 replies