Skip to content

Commit 1844e58

Browse files
committed
Add pull_request_target trigger to test workflow with explanatory comment
1 parent 7fbb5eb commit 1844e58

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
branches: [ "main" ]
66
pull_request:
77
branches: [ "main" ]
8+
# pull_request_target runs on the BASE of the PR, not the merge result.
9+
# It has write permissions and access to secrets.
10+
# It's useful for PRs from forks or automated PRs but requires careful use for security reasons.
11+
# See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
12+
pull_request_target:
13+
branches: [ "main" ]
814

915
jobs:
1016
test:

0 commit comments

Comments
 (0)