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>
This commit is contained in:
Copilot
2025-09-11 12:03:41 +10:00
committed by GitHub
parent 560b22e2ba
commit de72208024

View File

@@ -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