Pass GitHub token to style checks#589
Merged
Merged
Conversation
TomAugspurger
approved these changes
Jul 7, 2026
gforsyth
approved these changes
Jul 7, 2026
Contributor
|
Just hit this again in https://github.com/rapidsai/kvikio/actions/runs/28892292204/job/85707895270?pr=1000 |
Contributor
|
/merge |
Contributor
|
Succeeded on a re-run after merging this PR. Not saying this PR necessarily fixed things, because the error is transient, but it certainly didn't break anything: https://github.com/rapidsai/kvikio/actions/runs/28892292204/job/85709890287?pr=1000 |
rapids-bot Bot
pushed a commit
to rapidsai/rapids-metadata
that referenced
this pull request
Jul 7, 2026
This updates remote metadata fetching to use the GitHub Contents API with `GH_TOKEN` or `GITHUB_TOKEN` when available, while retaining the raw URL for unauthenticated requests. It adds bounded retries for rate limits and transient HTTP or transport errors, honoring GitHub’s `Retry-After` header when provided. This addresses the cuDF style-check failure where an unauthenticated metadata request returned HTTP 429. It depends on [rapidsai/shared-workflows#589](rapidsai/shared-workflows#589) to expose `${{ github.token }}` as `GH_TOKEN` to style-check jobs. Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Tom Augspurger (https://github.com/TomAugspurger) - Kyle Edwards (https://github.com/KyleFromNVIDIA) URL: #79
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This exposes the GitHub Actions token to
ci/check_style.shasGH_TOKEN. The style-check job already receives a repository-scoped token withcontents: read, but the failing step did not have it in its environment, sorapids-metadatamade an unauthenticated request and hit HTTP 429. Passing the token follows GitHub's supported authentication pattern and enables the companion rapidsai/rapids-metadata#79 change to make authenticated requests with retries. rapidsai/rapids-metadata#79 depends on this PR.