logoalt Hacker News

Terr_12/09/20241 replyview on HN

> For sure, which is one of the big benefits of git + git tagging

That's not enough for serious security though, because git is (still) using SHA1 instead of SHA256. You would need something extra, like a signed commit.

There's also the much simpler pitfall of an attacker just creating a branch named the same as a commit, in the hopes that people will accidentally check it out instead.


Replies

namibj12/11/2024

Then use git in sha2 mode. You just have to turn that on.