Skip to content
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

ci: set GITHUB_ACCESS_TOKEN to temporary read only token #1612

Merged

Conversation

consideRatio
Copy link
Member

@consideRatio consideRatio commented Jan 4, 2023

We ran into rate limitations, but by setting the env var GITHUB_ACCESS_TOKEN in our GitHub Job's, which is the default value for c.GitHubRepoProvider.access_token, this is no longer an issue.

We still have to mock tests with GistRepoProvider as the secrets.github_token is not provided rights to access api.github.com/gists.

Remaining test failure is resolved by #1615

The token provided by secrets.github_token in github workflows does not
have permissions to work against the api.github.com/gists endpoint.
Copy link
Member

@betatim betatim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Not merging yet to see what others think.

@manics
Copy link
Member

manics commented Jan 5, 2023

I started looking last night, saw a massive JSON blob.... and decided to leave it 😄. Everything else looked fine though, so happy to go with @betatim

@consideRatio
Copy link
Member Author

Ah sorry about the JSON blob. I wrote about it but then felt my PR description ended up so long that it was boring to read through and removed my notes about it ^^

The JSON changes is two keys representing api.github.com/gists URLs that are to be mocked that I relocated from one file to a standalone file. In other words, its just one file split in two.

Thanks for reviewing this, I'll go for a merge!

@consideRatio consideRatio merged commit 651ef5b into jupyterhub:main Jan 5, 2023
consideRatio pushed a commit to jupyterhub/helm-chart that referenced this pull request Jan 5, 2023
jupyterhub/binderhub#1612 Merge pull request #1612 from consideRatio/pr/attempt-fix-github-ratelimit
@consideRatio
Copy link
Member Author

I spotted a typo in this PR so the issue wasn't resolved. I added a commit fixing that typo in #1615 now though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI tests frequently hit a GitHub API rate limit
3 participants