Skip to content

ci: declare contents: read on three workflows#3802

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

ci: declare contents: read on three workflows#3802
arpitjain099 wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
arpitjain099:ci/add-permissions

Conversation

@arpitjain099
Copy link
Copy Markdown

Three workflows currently without explicit permissions:

  • spanner-terraform-validator — PR-time terraform fmt -check, terraform validate, README convention check.
  • upload-jar / upload-python-package — manual workflow_dispatch jobs that build artifacts and upload to GCS. GCS auth uses the self-hosted runner`s preconfigured gcloud credentials, not GITHUB_TOKEN.

All three only need contents: read from the GitHub token for actions/checkout. The DataflowTemplates repo has 26 workflows total; 23 already declare permissions explicitly. This brings the remaining three in line.

spanner-terraform-validator: PR-time terraform fmt/validate/README checks.
upload-jar / upload-python-package: manual workflow_dispatch builds and
uploads artifacts to GCS via the runner's pre-configured gcloud auth (not
GITHUB_TOKEN). All three need only contents: read from the GitHub token.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant