Skip to content

Commit

Permalink
chore: add gha token to buf to avoid rate limit failures in ci (#439)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
westonpace authored Feb 15, 2023
1 parent 335a4dc commit 7b981ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: bufbuild/[email protected]
with:
github_token: ${{ github.token }}
- run: buf format --diff --exit-code
proto:
name: Check Protobuf
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
node-version: "18"

- uses: bufbuild/[email protected]
with:
github_token: ${{ github.token }}

- name: run semantic-release
run: ./ci/release/run.sh
Expand Down

0 comments on commit 7b981ad

Please sign in to comment.