Skip to content

Commit 3611b00

Browse files
committed
Add pull_request_target trigger to test workflow with explanatory comment
Signed-off-by: phernandez <paul@basicmachines.co>
1 parent e652465 commit 3611b00

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.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)