Skip to content

workflows: grant pull-requests write to release_process_backports - #4081

Merged
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:fix_pr_permissions_workflow
Aug 19, 2026
Merged

workflows: grant pull-requests write to release_process_backports#4081
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:fix_pr_permissions_workflow

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

Calling the reusable workflow 'release_sync_changelog.yaml' requires
'pull-requests: write' permissions. Because
'release_process_backports.yaml' lacked this permission, GitHub
Actions rejected workflow runs when attempting to invoke the changelog
sync workflow.

Grant 'pull-requests: write' permissions to
'release_process_backports.yaml' and add regression tests that
statically verify caller workflows define sufficient permissions for
any reusable workflows they invoke.

Calling the reusable workflow `release_sync_changelog.yaml` requires
`pull-requests: write` permissions. Because
`release_process_backports.yaml` did not specify this permission,
GitHub Actions rejected the workflow run as invalid.

Grant `pull-requests: write` permissions to
`release_process_backports.yaml` and add an automated regression test
in `tests/workflows/` that statically verifies caller workflows grant
sufficient permissions to called reusable workflows.
@rickeylev
rickeylev marked this pull request as ready for review August 19, 2026 05:40
@rickeylev
rickeylev requested a review from aignas as a code owner August 19, 2026 05:40
@rickeylev
rickeylev merged commit d6e3912 into bazel-contrib:main Aug 19, 2026
5 checks passed
@rickeylev
rickeylev deleted the fix_pr_permissions_workflow branch August 19, 2026 05:41
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