CI: authenticate GitHub API (fix tinyoauth install rate-limit)#8
Merged
Conversation
install_deps resolves the Remotes: cornball-ai/tinyoauth dependency via the GitHub API. Without a token the requests are anonymous and hit rate limits, failing intermittently (cannot open URL .../contents/DESCRIPTION). Pass the auto-provided GITHUB_TOKEN as GITHUB_PAT so remotes authenticates.
Setting GITHUB_PAT alone didn't help: the Actions GITHUB_TOKEN is scoped to this repo and remotes' github_DESCRIPTION fetch of the cross-repo tinyoauth still fails (cannot open URL .../contents/DESCRIPTION). Install tinyoauth from a plain git clone (git protocol, no REST API) before install_deps, which then sees the Imports entry satisfied.
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.
master CI has been failing on
install_deps:Resolving
Remotes: cornball-ai/tinyoauthhits the GitHub API anonymously (no token in the workflow), so it gets rate-limited and fails. Passing the auto-providedGITHUB_TOKENasGITHUB_PATauthenticatesremotes(1000 req/hr). This PR's own CI run validates the fix.