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:
Etan Kissling 2024-06-21 15:16:14 +02:00
parent 31653d5869
commit 9d5c5baa67
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
name: PR block
on:
pull_request:
pull_request_target:
branches:
- stable