Skip to content

ci: add workflow-level contents: read to validate.yaml#4326

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

ci: add workflow-level contents: read to validate.yaml#4326
arpitjain099 wants to merge 1 commit into
google:mainfrom
arpitjain099:ci/add-permissions

Conversation

@arpitjain099

Copy link
Copy Markdown

Tiny hardening. The three jobs in validate.yaml (build-swift, test-swift, build-linux) check out the repo and run swift build / swift test / bazel build. They don't push, comment, or call any GitHub write endpoint — contents: read is the actual minimum scope.

It's the only workflow in .github/workflows/ without a permissions declaration. YAML parses.

@google-cla

google-cla Bot commented May 13, 2026

Copy link
Copy Markdown

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.

@arpitjain099

Copy link
Copy Markdown
Author

Hey, Polite ping. Happy to update the patch if there's a preferred shape. Appreciated.

Three jobs (build-swift, test-swift, build-linux) only check out the repo and
run swift build / swift test / bazel build. No GitHub API writes, no commits,
no releases - contents: read is the right scope.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
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