| ▲ | imglorp 2 hours ago | ||||||||||||||||||||||
Public service announcement You can pin actions versions to their hash. Some might say this is a best practice for now. It looks like this, where the comment says where the hash is supposed to point.
There is a tool to sweep through your repo and automate this: https://github.com/mheap/pin-github-action | |||||||||||||||||||||||
| ▲ | lijok 2 hours ago | parent | next [-] | ||||||||||||||||||||||
The problem is actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 probably doesn’t do this same pinning, and the actions ecosystem is such an intertwined mess that any single compromised action can propagate to the rest | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | rtaylorgarlock 2 hours ago | parent | prev | next [-] | ||||||||||||||||||||||
My preferred tool to solve these issues is called 'gitlab' | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | kanzure 2 hours ago | parent | prev | next [-] | ||||||||||||||||||||||
I've always been worried about their backend changing and somehow named tags with a previous commit hash working for an attacker to give something you didn't expect for the commit hash. | |||||||||||||||||||||||
| ▲ | woodruffw 2 hours ago | parent | prev [-] | ||||||||||||||||||||||
See also pinact[1], gha-update[2], and zizmor's unpinned-uses[3]. The main desiderata with these kinds of action pinning tools is that they (1) leave a tag comment, (2) leave that comment in a format that Dependabot and/or Renovate understands for bumping purposes, and (3) actually put the full tag in the comment, rather than the cutesy short tag that GitHub encourages people to make mutable (v4.x.y instead of v4). [1]: https://github.com/suzuki-shunsuke/pinact | |||||||||||||||||||||||