mheap / pin-github-action

Pin your GitHub actions to a specific hash
MIT License
73 stars 7 forks source link

Support netrc auth #168

Open captn3m0 opened 1 month ago

captn3m0 commented 1 month ago

Instead of having to pass a token manually over the CLI, it could automatically pick it up from the netrc file.

There is a nice octokit plugin for it already: https://www.npmjs.com/package/octokit-auth-netrc

So the order could be:

  1. Manually passed token
  2. Any token(s) from netrc file.
  3. Anonymous auth.