Hacker News new | ask | show | jobs
by Already__Taken 22 days ago
Quoting someone else's blog I've forgotten but you're trading the trust in the repo owner not moving a tag for trusting whoever merges the commit hash to have checked that's a release in the repo you want and not _some_ forks commit. All forks on github are the same repo you can pin any commit, merged upstream or not.

IMO Github should make Immutable tags mandatory to publish on https://github.com/marketplace

5 comments

Actions lockfiles prevent this. They won't allow you to lock an impostor commit, which is the right default.

(The previous way to provide general actions immutability, i.e. hash-pinning, had this issue and thus required additional checks.)

One could write an action that executes a shell script that does docker pull abc:latest.

As the consumer of an action that becomes really hard to find out unless I take the whole codebase apart.

> As the consumer of an action that becomes really hard to find out unless I take the whole codebase apart.

Maybe it's just me, but I only use (public) Actions I'm able to review in an hour or less, meaning less than 5K LOC or so. Not sure how people are able to just "consume" 3rd party GitHub Actions and not even review what exactly they do, how are people comfortable with the risks this opens up? It's literally supply-chain wild west, but seemingly people continue like it's 2010.

Why not make the marketplace published tags immutable instead like others do?
That’s exactly what lockfiles are intended to avoid!
I almost forgot about that completely outrageous treatment of forks -- just bonkers.