From 7b981ad5c51300b6cddadda8fd0547b061db3109 Mon Sep 17 00:00:00 2001 From: Weston Pace Date: Wed, 15 Feb 2023 11:11:42 -0800 Subject: [PATCH] chore: add gha token to buf to avoid rate limit failures in ci (#439) The buf action in our CI scripts will, without configuration, make anonymous calls to download artifacts from github (previous / golden versions of the proto files that it will compare against). These calls may fail due to rate limiting. By passing in the runner's github token (the one that is automatically created). We can bypass the strict anonymous rate limits. --- .github/workflows/pr.yml | 2 ++ .github/workflows/release.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index bd4574b7c..f5dbeec24 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -28,6 +28,8 @@ jobs: steps: - uses: actions/checkout@v3 - uses: bufbuild/buf-setup-action@v1.9.0 + with: + github_token: ${{ github.token }} - run: buf format --diff --exit-code proto: name: Check Protobuf diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87d3fbaa4..eae64ea42 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,8 @@ jobs: node-version: "18" - uses: bufbuild/buf-setup-action@v1.9.0 + with: + github_token: ${{ github.token }} - name: run semantic-release run: ./ci/release/run.sh