Skip to content

Commit 0c9295e

Browse files
committed
Switch label workflow trigger to pull_request_target
Changed the GitHub Actions workflow trigger from 'pull_request' to 'pull_request_target' to allow the workflow to run with access to secrets and on forks. This is useful for workflows that need elevated permissions or access to repository secrets.
1 parent 4542bf1 commit 0c9295e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/label_pull_requests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
name: Label pull request
99

1010
on:
11-
- pull_request
11+
- pull_request_target
1212

1313
jobs:
1414
label:

0 commit comments

Comments
 (0)