-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
Unstable on Mac due to GitHub API restrictions #69
Comments
Same issue for me |
As per https://github.com/octokit/rest.js/blob/master/docs/src/pages/api/01_authentication.md and https://github.com/octokit/auth-action.js
That doesn't seem to be the case though, exposing |
It's a limit enforced by tmate.io, not a GitHub thing. I've fixed this in one of my workflows by getting an API key from tmate, and setting it up:
... but it would be nice if that was done through a |
Closing, since multiple different issues are mixed here.
This is about the GitHub API, this has nothing to do with tmate. Closing for now, for further issues please open new issues, thanks! |
Github seems to have started limiting things far more in recent days, is there a way we could make it use GITHUB_TOKEN? I'm getting this every single attempt today (and seeing it on unrelated tests that use github api as well):
|
Could we please reopen this and see if there's a way to get a token in there?
|
I see this gist that may help here: https://gist.github.com/willgarcia/7347306870779bfa664e |
It looks like just adding this to the test yml file: env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This fixes mxschmitt#69 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes mxschmitt#69 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Use the GITHUB_TOKEN to avoid exceeding the API rate limit There was a recent uptick of problems with the `limit-access-to-actor` feature because it uses an unauthenticated REST API call (and the rate limiting is based on IP, i.e. hosted GitHub build agents will run into this _a lot_). The symptom looks like this: Error: API rate limit exceeded for 172.176.196.48. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.) Let's imitate how `actions/checkout` uses authenticated REST API calls (see https://github.com/actions/checkout/blob/v3.3.0/action.yml#L24): add an "input" variable with the correct default (and users are expected to never _actually_ to provide that variable). Also use GITHUB_TOKEN in the Homebrew calls This fixes #69
I have been consistently running across this error when trying to use tmate on a
macos-10.15
runner:I'm not sure what exactly is triggering this, but I am in fact using limit-access-to-actor which relies on octokit
It seems to be related to this: actions/runner-images/issues/602
Looking at octokit's documentation, it seems setting the GITHUB_TOKEN environment variable might be enough to authenticate the user. I will try that and report back with anything I find.Edit: I have yet again come across the same error with the GITHUB_TOKEN environment variable setThe text was updated successfully, but these errors were encountered: