Skip to content

Commit cac63a3

Browse files
authored
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
1 parent 84a35c8 commit cac63a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pr_block.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
name: PR block
99
on:
10-
pull_request:
10+
pull_request_target:
1111
branches:
1212
- stable
1313

0 commit comments

Comments
 (0)