-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚸 use GitHub token by default #61
🚸 use GitHub token by default #61
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice thank you! I didn't know this was possible.
Some small requests and we can merge this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome. Thank you!
Nice, I suggested this on Discord a while back, happy to see it in! |
That's what motivated me to look into it 😉 |
Set `${{ github.token }}` as the default value for `github_token` input. This is the common practice, examples: * https://github.com/actions/checkout/blob/main/action.yml#L24 * astral-sh/setup-uv#61
This PR adjusts the action so that it is no longer necessary to explicitly specify the GitHub token to circumvent the API rate limit.
To this end, it simply passes the repository's GitHub token (available via
${{ github.token }}
) as a default for thegithub_token
action input.This is similar to how this is handled in, e.g., https://github.com/peter-evans/create-pull-request; specifically here.