Skip to content

ci: declare contents: read for the bazel test workflow#636

Open
arpitjain099 wants to merge 1 commit into
google:mainfrom
arpitjain099:ci/add-permissions
Open

ci: declare contents: read for the bazel test workflow#636
arpitjain099 wants to merge 1 commit into
google:mainfrom
arpitjain099:ci/add-permissions

Conversation

@arpitjain099
Copy link
Copy Markdown

Tiny hardening change. The single bazel_test job in .github/workflows/bazel-test.yaml only 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 the workflow's GITHUB_TOKEN only needs contents: read.

YAML parses cleanly (python -c 'import yaml; yaml.safe_load(...)').

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.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 13, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant