Skip to content

fix: authenticate GitHub API calls to avoid 60/hr unauthenticated rate limit#411

Open
vivansh12 wants to merge 1 commit into
mainfrom
BREV-9445/authenticate-github-rate-limit-with-token
Open

fix: authenticate GitHub API calls to avoid 60/hr unauthenticated rate limit#411
vivansh12 wants to merge 1 commit into
mainfrom
BREV-9445/authenticate-github-rate-limit-with-token

Conversation

@vivansh12

Copy link
Copy Markdown
Contributor

Problem
brev upgrade and other CLI script paths call https://api.github.com/... unauthenticated, which GitHub caps at 60 req/hour per IP. Behind a VPN corporate egress, many users share one public IP and drain that bucket together, causing:
403 Forbidden API rate limit exceeded

Fix
Send an Authorization token (from GITHUB_TOKEN, falling back to gh auth token) on GitHub API calls so each user uses their own ~5,000/hr authenticated quota. The token is optional if none is found, calls fall back to the existing unauthenticated behavior.

@vivansh12 vivansh12 self-assigned this Jun 18, 2026
@vivansh12 vivansh12 marked this pull request as ready for review June 18, 2026 10:02
@vivansh12 vivansh12 requested a review from a team as a code owner June 18, 2026 10:02
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