Skip to content

Adding github token to authenticate rest api call#211

Open
Jannetty wants to merge 2 commits intomainfrom
patch/authenticate-restAPIcall
Open

Adding github token to authenticate rest api call#211
Jannetty wants to merge 2 commits intomainfrom
patch/authenticate-restAPIcall

Conversation

@Jannetty
Copy link
Member

@Jannetty Jannetty commented Mar 2, 2026

Estimated time to review: xs again

Summary of changes: This is an interesting one! And I think we only hit this bug because I tried to merge three branches in rapid succession.

We build our documentation site using Jekyll in a GitHub Action. During the build, the jekyll-github-metadata plugin queries the GitHub REST API (for example, to retrieve release information). When these API requests are made without authentication, they have a low rate limit.

Because GitHub-hosted runners share IP addresses across many workflows, and because merging multiple branches quickly triggered several documentation builds back-to-back, we exceeded this rate limit. When that happened, the API request failed, which caused the Jekyll build to error.

The change in this PR passes the automatically generated GITHUB_TOKEN to Jekyll via the JEKYLL_GITHUB_TOKEN environment variable. Authenticated API requests have a much higher rate limit, so this should prevent these intermittent build failures.

How to verify changes: I can't test this locally, but reading the fail log of the Jekyll action suggests this should fix the problem.

@Jannetty Jannetty self-assigned this Mar 2, 2026
@Jannetty Jannetty added type: bug Something isn't working as expected size: xsmall Estimated size of issue or PR is xsmall labels Mar 2, 2026
@Jannetty Jannetty marked this pull request as ready for review March 2, 2026 23:19
Copy link
Contributor

@allison-li-1016 allison-li-1016 left a comment

Choose a reason for hiding this comment

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

interesting !

Jannetty added a commit that referenced this pull request Mar 3, 2026
adding github token to authenticate rest api call during jekyll docs website building action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: xsmall Estimated size of issue or PR is xsmall type: bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants