ci: use GitHub token to install protoc (#1996)

* ci: use GitHub token to install protoc

* fix: use github.token instead of secrets.GITHUB_TOKEN

Co-authored-by: Piotr Galar <piotr.galar@gmail.com>
This commit is contained in:
Marten Seemann 2023-01-12 14:59:36 -08:00 committed by GitHub
parent bdbef49cdb
commit b3ab45431d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ runs:
uses: trail-of-forks/setup-protoc@a97892a429d98fae78d26f40334ab7eb616d08b9 # include https://github.com/arduino/setup-protoc/pull/58 uses: trail-of-forks/setup-protoc@a97892a429d98fae78d26f40334ab7eb616d08b9 # include https://github.com/arduino/setup-protoc/pull/58
with: with:
version: '21.12' version: '21.12'
repo-token: ${{ github.token }}
- name: Install Protobuf compiler - name: Install Protobuf compiler
shell: bash shell: bash
run: go install google.golang.org/protobuf/cmd/protoc-gen-go run: go install google.golang.org/protobuf/cmd/protoc-gen-go