fix(ci): replace bats-action with manual install to avoid API 403#274
Merged
fix(ci): replace bats-action with manual install to avoid API 403#274
Conversation
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>
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>
viviveevee
approved these changes
Feb 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI failure:
https://github.com/dfinity/quill/actions/runs/22401062319/job/64849515083#step:8:65
https://github.com/dfinity/quill/actions/runs/22403209916/job/64855486086#step:8:69