Repository navigation
Description
Hit while landing the dependency PRs: #36 failed with
Error: GitHub releases API returned 403 rate limit exceeded — refusing to deploy
a latest.json without a verifiable updater artifact. Re-run once the API recovers.
It passed on a plain re-run with no code change, so it is not a defect in the 23 dependency updates it was blocking.
Cause
packages/maximal/site/src/pages/updates/latest.json.ts fetches api.github.com/repos/…/releases/latest at build time and authenticates only when GITHUB_TOKEN is set:
/** GITHUB_TOKEN is passed by deploy-pages.yml; it must never reach the client bundle */
function githubHeaders() {
const token = (process.env.GITHUB_TOKEN ?? "").trim()
...
if (token) headers.Authorization = `Bearer ${token}`
}ci.yml's build step passes no environment:
- name: Build, typecheck, and lint workspace
run: pnpm exec turbo run build typecheck lint # no env:So the request goes out anonymous. Anonymous GitHub API is 60 requests/hour per IP, and GitHub-hosted runners share egress IPs across every Actions customer, so the budget is usually spent by strangers before we arrive. This is not our own usage approaching a limit — one call per build could never reach the 1,000/hour/repo authenticated limit.
Note also that deploy-pages.yml, named in that comment, does not exist in this repository — .github/workflows/ holds only ci.yml and release.yml. So nothing here ever supplies the token, and this route's network call serves no deploy purpose in this repo: the update manifest is committed in stuffbucket/maximal and pinned at v0.4.41 (RELEASING.md → mxml.sh).
Options
- Skip the lookup in plain CI, keeping fail-closed behaviour where a manifest is actually deployed. Consistent with this repo's practice of not handing credentials to build-time dependency code, and honest about the fact that nothing deploys a manifest from here.
- Pass
GITHUB_TOKENinci.yml. One line, removes the flake, but puts a token in the environment of a build that executes arbitrary dependency code — the opposite of the producer-isolation stance the release pipeline is built on.
Recommend 1. Deliberately not changed here, because it touches update-manifest semantics.
Impact
Any CI run can fail for this reason at any time, with an error that reads like a release problem. It cost one full re-run of an 8-minute job in this batch alone.
Activity
fix(site): skip the releases lookup when no GITHUB_TOKEN is present (#52