Skip to content

fix(ci): replace bats-action with manual install to avoid API 403#274

Merged
lwshang merged 4 commits intomasterfrom
lwshang/e2e-bats-auth-token
Feb 25, 2026
Merged

fix(ci): replace bats-action with manual install to avoid API 403#274
lwshang merged 4 commits intomasterfrom
lwshang/e2e-bats-auth-token

Conversation

@lwshang
Copy link
Contributor

@lwshang lwshang commented Feb 25, 2026

lwshang and others added 2 commits February 25, 2026 10:18
The bats-core/bats-action step downloads bats via the GitHub API
without authentication, causing 403 errors due to rate limiting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The bats-core/bats-action@4.0.0 composite action doesn't propagate
the GITHUB_TOKEN env var to its internal shell steps, causing
unauthenticated GitHub API calls that hit rate limits (403 errors).
Replace with direct npm install of bats and git clone of bats-support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lwshang lwshang changed the title fix(ci): pass GITHUB_TOKEN to bats-action to avoid 403 rate limit fix(ci): replace bats-action with manual install to avoid API 403 Feb 25, 2026
lwshang and others added 2 commits February 25, 2026 10:59
Surface setup failures earlier by running dfx, coreutils, and bats
installation steps before the lengthy cargo build.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
npm install -g fails with EACCES on Ubuntu runners. Clone and use
bats-core's own install.sh script instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lwshang lwshang marked this pull request as ready for review February 25, 2026 16:18
@lwshang lwshang requested a review from a team as a code owner February 25, 2026 16:18
@lwshang lwshang merged commit 36e9146 into master Feb 25, 2026
33 checks passed
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.

2 participants