Reputation: 1
I want to trigger a GitHub Actions workflow when a pull request review is submitted. However, I need to ensure that:
pull_request_review
event can trigger workflows on review submissions, but it can be manipulated in the PR and lacks write permissions when the PR comes from a fork.How can I securely trigger a workflow on review submission while ensuring it can't be altered in the PR and retains write access?
I used the pull_request_review
event to trigger the workflow
on:
pull_request_review:
types: [submitted]
The workflow can be modified within the PR, making it a security risk, and it lacks write permissions when triggered from a forked repository.
I expected the workflow to trigger securely when a review is submitted, without allowing the PR to modify it, and to retain write permissions, even for forked PRs.
Upvotes: 0
Views: 20