Skip to content

fix: authenticate mise against the GitHub API in pre-commit - #14

Merged
shmileee merged 1 commit into
mainfrom
fix/mise-github-token
Nov 15, 2026
Merged

shmileee merged 1 commit into
mainfrom
fix/mise-github-token

Conversation

@shmileee

Copy link
Copy Markdown
Contributor

Description

mise install resolves tool versions through the GitHub API. Without a token it uses the runner's shared anonymous limit (60 requests/hour) and fails, e.g. on devops-roast/pre-commit-hooks#8:

failed to install aqua:pre-commit/pre-commit@4.3.0
HTTP status client error (403 rate limit exceeded) for url (https://api.github.com/repos/pre-commit/pre-commit/releases/tags/4.3.0)

Since pre-commit / pre-commit is a required check, this blocks merges whenever the mise cache misses. The step now gets the GitHub App token the job already generates as GITHUB_TOKEN, which mise uses for API calls.

Tested from devops-roast/pre-commit-hooks#8, which temporarily points at this branch.

Definition of Done

  • The change is thoroughly documented.
  • The CI passes (linter, unit tests, spelling, etc.).
  • Any generated files have been updated.

mise install resolves tool versions through the GitHub API. Without a
token it uses the runner's shared anonymous rate limit and fails with
"403 rate limit exceeded", which blocks every pre-commit run that misses
the mise cache. Pass the GitHub App token that the job already creates.
@shmileee
shmileee merged commit d07726d into main Nov 15, 2026
1 check passed
@shmileee
shmileee deleted the fix/mise-github-token branch November 15, 2026 19:45
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