From 2dc094421b47d4ebb85203a9c1db3a8ab9c1fbab Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 9 Aug 2026 17:52:51 +0000 Subject: [PATCH] Give buf-setup-action a token so setup stops hitting the rate limit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit buf-setup-action resolves the buf release download URL through the GitHub API. The step passed no token, so that request went out anonymous and drew on the per-IP limit shared with every other job on the runner, which intermittently failed the job before buf ever ran: Setting up buf version "1.50.0" Resolving the download URL for the current platform... ##[error]API rate limit exceeded for 172.183.131.23. The action warns about this itself — "No github_token supplied, API requests will be subject to stricter rate limiting". Passing the workflow's own token moves the request to the authenticated limit. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01ANVHEs41RJbybS3ja9N1SA --- .github/workflows/buf.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/buf.yml b/.github/workflows/buf.yml index 0ab7fa51a7..7bc91bbf31 100644 --- a/.github/workflows/buf.yml +++ b/.github/workflows/buf.yml @@ -10,4 +10,10 @@ jobs: steps: - uses: actions/checkout@v7 - uses: bufbuild/buf-setup-action@v1 + with: + # buf-setup-action resolves the release download URL through the + # GitHub API. Without a token that request is anonymous and shares + # a rate limit with every other job on the runner's IP, so setup + # intermittently fails with "API rate limit exceeded". + github_token: ${{ github.token }} - uses: bufbuild/buf-lint-action@v1