(no title)
onnimonni | 11 months ago
https://github.blog/news-insights/company-news/sha-1-collisi...
Is anyone aware of a git hook I could use to analyse my .github/workflows/*.yml files and replace git tags like "v4" with the current git commit hashes?
I think this would make it much safer to use 3rd party GitHub Actions.
Y_Y|11 months ago
Anyway here's the gist of a solution without any of the necessary checking that the files actually exist etc.
onnimonni|11 months ago
$ git ls-remote "https://github.com/$repo.git" "refs/tags/$tag"
Even though the grep and sed are not very readable this was very useful way to avoid yet another tool!