(no title)
ebfe1 | 9 months ago
https://github.com/santrancisco/pmw
It has a few "features" which allowed me to go through a repository quickly:
- It prompts user and recommend the hash, it also provides user the url to the current tag/action to double check the hash value matches and review the code if needed
- Once you accept a change, it will keep that in a json file so future exact vesion of the action will be pinned as well and won't be reprompted.
- It let you also ignore version tag for github actions coming from well-known, reputational organisation (like "actions" belong to github) - as you may want to keep updating them so you receive hotfix if something not backward compatible or security fixes.
This way i have full control of what to pin and what not and then this config file is stored in .github folder so i can go back, rerun it again and repin everything.
loginatnine|9 months ago
ebfe1|9 months ago
newman314|9 months ago
action@commit # semantic version
Makes it easy to quickly determine what version the hash corresponds to. Thanks.
ebfe1|9 months ago
Example:
uses: ncipollo/release-action@440c8c1cb0ed28b9f43e4d1d670870f059653174 #v1.16.0
And for anything that previously had @master, it becomes the following with the hash on the day it was pinned with "master-{date}" as comment:
uses: ravsamhq/notify-slack-action@b69ef6dd56ba780991d8d48b61d94682c5b92d45 #master-2025-04-04
fartbagxp|9 months ago
remram|9 months ago
ebfe1|9 months ago
The tool is indeed meant for semi-auto flow to ensure human eye looked at the action being used.
tuananh|9 months ago
jquaint|9 months ago
Trying to get the same behavior with renovate :)