Skip to content

CI: authenticate GitHub API (fix tinyoauth install rate-limit)#8

Merged
TroyHernandez merged 2 commits into
masterfrom
ci/github-pat
Jun 9, 2026
Merged

CI: authenticate GitHub API (fix tinyoauth install rate-limit)#8
TroyHernandez merged 2 commits into
masterfrom
ci/github-pat

Conversation

@TroyHernandez

Copy link
Copy Markdown
Collaborator

master CI has been failing on install_deps:

cannot open URL 'https://api.github.com/repos/cornball-ai/tinyoauth/contents/DESCRIPTION?ref=HEAD'

Resolving Remotes: cornball-ai/tinyoauth hits the GitHub API anonymously (no token in the workflow), so it gets rate-limited and fails. Passing the auto-provided GITHUB_TOKEN as GITHUB_PAT authenticates remotes (1000 req/hr). This PR's own CI run validates the fix.

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.
@TroyHernandez TroyHernandez merged commit fea6b60 into master Jun 9, 2026
4 checks passed
@TroyHernandez TroyHernandez deleted the ci/github-pat branch June 9, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant