Skip to content

Commit 931f522

Browse files
committed
ci: declare contents: read for the bazel test workflow
The single job in this workflow checks out the repo and runs bazel test with remote cache via Google service-account credentials (passed as the GOOGLE_CREDENTIALS secret). It does not write to the repo or call GitHub APIs for any write, so contents: read is the minimum GITHUB_TOKEN scope it needs.
1 parent 6588bcc commit 931f522

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/bazel-test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
concurrency:
1114
group: ${{ github.workflow }}-${{ github.ref }}
1215
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

0 commit comments

Comments
 (0)