-
Notifications
You must be signed in to change notification settings - Fork 298
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
Support GitHub API Token #18
Comments
Ah I just noticed bazelisk only pulls the releases list from |
@philwo any ideas on a solution for this? I could dedicate some time to this if we had a clear path |
Both ideas sound good - using a GitHub token (if available) and storing that information on our own host. I can handle the latter part, but integrating it into our release pipeline will take some time. @keith do you want to look into using a GitHub token? Sounds like a good and quick fix for this. I'm not sure where people would usually store these tokens - environment variable? If that's the usual way, sure, why not. :) |
I've submitted an attempt at this here #62 |
This adds support for BAZELISK_GITHUB_TOKEN which is a GitHub token used for API requests when it is set. This fixes the issue of being on a shared network and getting rate limited when using bazelisk. Fixes #18
If you're on a shared network, you can sometimes see messages like this from the API:
Homebrew (for instance) has support for supplying a token via
HOMEBREW_GITHUB_API_TOKEN
, making it more likely that the API request won't get rate limited. It would be nice forbazelisk
to support this as well, perhaps via a similar convention (BAZELISK_GITHUB_API_TOKEN
) to perform authenticated requests instead.The text was updated successfully, but these errors were encountered: