Skip to content

runtime: authenticate GitHub kernel metadata requests - #9

Merged
taisuii merged 1 commit into
mainfrom
codex/github-token-for-kernel-download
Oct 31, 2026
Merged

taisuii merged 1 commit into
mainfrom
codex/github-token-for-kernel-download

Conversation

@taisuii

@taisuii taisuii commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

变更

  • githubHeaders() 在存在 DECRYPTHUB_GITHUB_TOKEN / GITHUB_TOKEN 时附加只读 Bearer token。

原因

匿名 GitHub API 每小时只有 60 次额度。CI 反复安装内核后直接 403,桌面端下载也会受影响。

验证

  • 新增单测:有 token 时带 Authorization,无 token 时不带;
  • 本地 node --test test/kernels-release.test.mjs 通过。

Anonymous GitHub API access is limited to 60 requests per hour, which breaks CI kernel installs and degrades desktop downloads. Send a read-only token when DECRYPTHUB_GITHUB_TOKEN or GITHUB_TOKEN is present.
@taisuii
taisuii merged commit beed60d into main Oct 31, 2026
2 of 4 checks passed
@taisuii
taisuii deleted the codex/github-token-for-kernel-download branch November 1, 2026 11:00
@taisuii
taisuii restored the codex/github-token-for-kernel-download branch November 5, 2026 12:29
@taisuii
taisuii deleted the codex/github-token-for-kernel-download branch November 21, 2026 04:42
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