fix: pr assign workflow perm#461
Conversation
The workflow also needs pull-request write permission Assisted-by: Cursor AI Signed-off-by: Scott Wickersham <swickers@redhat.com>
Code Review by Qodo
Context used✅ Compliance rules (platform):
5 rules 1. Excess PR write permission
|
PR Summary by QodoFix pr-assigner workflow by granting pull-requests write permission WalkthroughsDescription• Grant the pr-assigner workflow pull-requests: write to enable PR file listing and assignments. • Keep the workflow using the Issues API while ensuring required least-privilege access. Diagramgraph TD
A["pr-assigner workflow"] --> B["GITHUB_TOKEN permissions"] --> C["GitHub API"] --> D["Pull request"]
C --> E["Issues API (assignees)"]
High-Level AssessmentThe following are alternative approaches to this PR: 1. Set permissions at the job level only
2. Use `permissions: write-all`
Recommendation: The current approach (explicitly granting File ChangesOther (1)
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: enkeefe00, swickersh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
033c891
into
redhat-appstudio:main
The workflow also needs pull-request write permission
Assisted-by: Cursor AI