Repository navigation
Scope write permissions to jobs in cut_release_branch.yml - #41522
Conversation
|
/gemini review |
There was a problem hiding this comment.
📋 Review Summary
This PR properly restricts top-level GitHub Actions permissions to contents: read in .github/workflows/cut_release_branch.yml and scopes contents: write specifically to the update_release_branch and update_master jobs. It also removes the unused pull-requests: write permission.
🔍 General Feedback
- The changes accurately adhere to the principle of least privilege without altering workflow functionality (
start_snapshot_buildonly requires default read permissions whileupdate_release_branchandupdate_masterpush branches/tags).
💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.
|
Assigning reviewers: R: @Amar3tto for label build. Note: If you would like to opt out of this review, comment Available commands:
The PR bot will only process comments in the main thread (not review comments). |
Note: this PR was auto-generated by tooling. Before moving it out of draft, the author has done a full review of the PR, specifically evaluating it on the following criteria:
CodeQL/zizmor) onmasterwithout altering intended public API or workflow semanticsIf you have concerns with the PR or with the underlying methodology used to generate this, please comment below - they will be addressed by the author not the tooling :)
Summary
zizmor/excessive-permissions(High / error, alerts#1512,#1513) findings in.github/workflows/cut_release_branch.yml.contents: read(removing unusedpull-requests: writeand avoiding unnecessary write permissions onstart_snapshot_build) and scopescontents: writespecifically to theupdate_release_branchandupdate_masterjobs.Verification
./gradlew :beam-test-gha:preCommit