From cca7e6de9ac817587fdbbb9139029bd0cedfa035 Mon Sep 17 00:00:00 2001 From: shmileee Date: Sun, 15 Nov 2026 20:37:41 +0100 Subject: [PATCH] fix: authenticate mise against the GitHub API in pre-commit 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. --- .github/workflows/pre-commit.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index 181cca0..6766a76 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -77,6 +77,11 @@ jobs: path: ~/.local/share/mise key: mise-${{ runner.os }}-${{ hashFiles('mise.toml') }} - name: mise install + # mise resolves tool versions through the GitHub API. Without a token + # it shares the runner's anonymous rate limit (60 requests/hour) and + # fails with "403 rate limit exceeded". + env: + GITHUB_TOKEN: ${{ steps.github_app.outputs.token }} run: | mise install --yes - name: cache pre-commit dependencies