From de722080244c7beae0ed1df5bbbcf84768d53e30 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 11 Sep 2025 12:03:41 +1000 Subject: [PATCH] GHA: Add GITHUB_TOKEN to proto-lint.yml workflow to prevent rate limit issues (#2042) * Initial plan * Add GITHUB_TOKEN to proto-lint.yml workflow to prevent rate limit issues Co-authored-by: thrasher- <4685270+thrasher-@users.noreply.github.com> * Add github_token parameter to buf actions to ensure proper GitHub API authentication Co-authored-by: thrasher- <4685270+thrasher-@users.noreply.github.com> * Remove github_token from buf-lint-action steps as only needed on buf-setup-action Co-authored-by: thrasher- <4685270+thrasher-@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: thrasher- <4685270+thrasher-@users.noreply.github.com> --- .github/workflows/proto-lint.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/proto-lint.yml b/.github/workflows/proto-lint.yml index 8fc78427..5e558389 100644 --- a/.github/workflows/proto-lint.yml +++ b/.github/workflows/proto-lint.yml @@ -2,6 +2,8 @@ name: proto-checks 'on': - push - pull_request +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: proto-lint: name: proto-checks @@ -22,6 +24,8 @@ jobs: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest - uses: bufbuild/buf-setup-action@v1.50.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} - name: buf generate working-directory: ./gctrpc