use `pull_request_target` to run PR block action
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
This commit is contained in:
parent
31653d5869
commit
9d5c5baa67
|
@ -7,7 +7,7 @@
|
|||
|
||||
name: PR block
|
||||
on:
|
||||
pull_request:
|
||||
pull_request_target:
|
||||
branches:
|
||||
- stable
|
||||
|
||||
|
|
Loading…
Reference in New Issue