chore(ci): give new workspace comment workflow correct perms#2606
Conversation
Signed-off-by: Hope Hadfield <hhadfiel@redhat.com>
Review Summary by QodoUpdate workspace PR comment workflow with elevated permissions
WalkthroughsDescription• Changed trigger from pull_request to pull_request_target for elevated permissions • Added persist-credentials: false to checkout step for security • Enables workflow to write comments on PRs from external contributors Diagramflowchart LR
A["pull_request trigger"] -->|"Change to"| B["pull_request_target trigger"]
B -->|"Enables"| C["Write permissions for PR comments"]
D["Checkout step"] -->|"Add security flag"| E["persist-credentials: false"]
File Changes1. .github/workflows/new-workspace-pr-comment.yml
|
Code Review by Qodo
1.
|
Signed-off-by: Hope Hadfield <hhadfiel@redhat.com>
|



Hey, I just made a Pull Request!
This should provide the correct permissions for the new workspace PR comment workflow. The test run failed because workflows triggered by
pull_requestreceive a read-only GITHUB_TOKEN.✔️ Checklist