Commit 360835e
committed
Use pull_request_target for fork PR write access
The pull_request trigger has restricted GITHUB_TOKEN permissions for
fork PRs (read-only). Using pull_request_target runs the workflow in
the context of the base repository, providing write access to post
PR comments.
Added explicit ref to checkout the PR head SHA since pull_request_target
defaults to checking out the base branch.1 parent 96fc42d commit 360835e
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments