#18765: ci: avoid Bun setup GitHub tag API rate-limit failures
stale
size: XS
Cluster:
Bun Runtime and Docker Improvements
## Summary
- Identified the Bun resolution paths triggering GitHub API tag lookups in CI:
- `.github/actions/setup-node-env/action.yml` (composite action used by multiple CI jobs)
- `.github/workflows/ci.yml` (Windows checks job direct Bun setup)
- Replaced `bun-version: latest` with pinned `1.3.9` so setup-bun does not need to resolve latest via `GET /repos/oven-sh/bun/git/refs/tags` on every run.
- Passed `token: ${{ github.token }}` explicitly to `oven-sh/setup-bun@v2` to keep API calls authenticated when version resolution is needed.
## Failure mode addressed
CI intermittently fails with 403 while resolving Bun tags from the GitHub API (`/repos/oven-sh/bun/git/refs/tags`). Using `latest` forces tag-resolution requests per job, which can hit API limits under CI concurrency.
## Why this fix
- Smallest safe diff, scoped only to Bun setup in CI.
- Pinned Bun version avoids tag API lookups entirely in normal runs.
- Explicit token keeps fallback/resolution requests authenticated.
## Validation
- YAML parse check passed for changed files:
- `.github/actions/setup-node-env/action.yml`
- `.github/workflows/ci.yml`
Most Similar PRs
#9480: fix: Docker build runs unverified remote Bun installer
by coygeek · 2026-02-05
65.4%
#22250: ci: pin GitHub Actions to SHA and harden Dockerfiles
by novalis133 · 2026-02-20
62.8%
#9474: fix: GitHub Actions not pinned to SHA digests in CI/CD workflows
by coygeek · 2026-02-05
60.6%
#17123: Add Cloud Run deployment guide and Bun version pinning
by optiflow · 2026-02-15
59.0%
#11765: fix(ci): restrict GITHUB_TOKEN permissions in workflows
by coygeek · 2026-02-08
57.7%
#22580: CI: pin workflow action refs to immutable SHAs
by Rohan5commit · 2026-02-21
55.5%
#6863: feat: add bun runtime support as opt-in feature
by aashishsingla567 · 2026-02-02
55.3%
#19172: fix(docker): prevent HTTPS downgrade in curl commands
by govind-amt · 2026-02-17
54.6%
#11818: fix(docker): resolve build hang by using in-place ownership and opt...
by dilly · 2026-02-08
54.5%
#22352: fix(auth): validate Copilot token cache belongs to requesting account
by xinhuagu · 2026-02-21
53.8%