use `pull_request_target` to run PR block action (#6376)
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
84a35c85c5
commit
cac63a3a82
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
name: PR block
|
name: PR block
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request_target:
|
||||||
branches:
|
branches:
|
||||||
- stable
|
- stable
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue