Better HN
topnewbestaskshowjobs
Log inSign up

brokenpip3

1 karma · joined Jul 26, 2024 (2y ago) · 1 submissions

https://github.com/brokenpip3
Submissions

comment 1y ago · link · parent

>It's a bit more manual work

after this incident, I started pinning all my github workflows with hashes, like other folks here I guess :D But I quickly got tired of doing it manually so I put together this [0] quick and dirty script to handle it for me. It just updates all workflow files in a repo and can be also used as a pre-commit hook to catch any unpinned steps in the future. It’s nothing fancy (leveraging ls-remote), but it’s saved me some time, so I figured I’d share in case it helps someone else :)

[0] https://github.com/brokenpip3/pre-commit-hooks?tab=readme-ov...