Proposal: default github-token to github.token #3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Howdy,
Thanks for your work on
nix-installer
and this action! I'm rooting for the success of both projects 🙂I noticed the readme recommends supplying the
github-token
input, otherwise "you will likely get rate limited."Have you considered defaulting
github-token
to thegithub.token
value from the github context? This would improve the ergonomics of using the action:though it would change the semantics of the current implementation. I'm not sure how strongly the maintainers feel about keeping the current behavior, which makes it possible to avoid authenticated requests.
Though, one option would be to explicitly opt out of authenticated requests, maybe with an input like:
or
What do you think? I'm happy to open a PR if this aligns with the direction of the project.
Cheers!
Hmm I tried defaulting it to
${{ secrets.GITHUB_TOKEN }}
however that didn't work. We can give it a shot with${{ github.token }}
!This behavior is desired I think!
If you wanted to do this PR please go ahead! You can make a PR change against https://github.com/DeterminateSystems/nix-installer-example to test. :)
Sounds like a plan!
I created https://github.com/DeterminateSystems/nix-installer-action/pull/6 with the changes and https://github.com/DeterminateSystems/nix-installer-example/pull/5 to test them 🤞