ci: use pull_request_target for fork PR support#376
Conversation
Switch from pull_request to pull_request_target event to allow the workflow to post PR comments on pull requests from forks. Signed-off-by: Tomas Turek <tturek@redhat.com>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
|
related to #373 CI failures |
User description
Switch from pull_request to pull_request_target event to allow the workflow to post PR comments on pull requests from forks.
PR Type
Enhancement
Description
Switch workflow trigger from
pull_requesttopull_request_targetEnables posting PR comments on fork pull requests
Maintains existing path and event type filters
Diagram Walkthrough
File Walkthrough
kustomize-diff.yaml
Switch to pull_request_target for fork support.github/workflows/kustomize-diff.yaml
pull_requesttopull_request_targetkonflux-configs/**