Skip to content

Commit

Permalink
use pull_request_target to run PR block action (#6376)
Browse files Browse the repository at this point in the history
To avoid requiring authorization to run the PR block action for new
contributors, use `pull_request_target`. Running the workflow file from
the destination branch does not require approval.

- https://stackoverflow.com/questions/74957218/what-is-the-difference-between-pull-request-and-pull-request-target-event-in-git
  • Loading branch information
etan-status authored Jul 3, 2024
1 parent 84a35c8 commit cac63a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr_block.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

name: PR block
on:
pull_request:
pull_request_target:
branches:
- stable

Expand Down

0 comments on commit cac63a3

Please sign in to comment.