Skip to content

fix(upgrade): authenticate GitHub release checks#33912

Open
tangtaizong666 wants to merge 1 commit into
anomalyco:devfrom
tangtaizong666:codex/upgrade-github-token-23461-20260625214523
Open

fix(upgrade): authenticate GitHub release checks#33912
tangtaizong666 wants to merge 1 commit into
anomalyco:devfrom
tangtaizong666:codex/upgrade-github-token-23461-20260625214523

Conversation

@tangtaizong666

Copy link
Copy Markdown

Issue for this PR

Closes #23461

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Uses GITHUB_TOKEN as a bearer token when the upgrade/version check falls back to GitHub Releases. This prevents opencode upgrade from using the low unauthenticated GitHub API rate limit behind shared proxies or VPNs.

How did you verify your code works?

  • bun test test/installation/installation.test.ts
  • bun run --cwd packages/opencode typecheck
  • bun run lint exits 0; existing warnings remain.

Screenshots / recordings

Not applicable; CLI/network request behavior only.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

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.

opencode upgrade fails with 403 (doesn't respect GITHUB_TOKEN)

1 participant