Repository navigation
Commit a7f67a2
committed
fix(pr-labeler): use pull_request_target to fix 403 on fork PRs
pull_request runs in the fork context, where GITHUB_TOKEN is read-only
even with write permissions declared. pull_request_target always runs
in the base repo context so the token can write labels and comments.
Safe here because we never check out fork code.1 parent 3861086 commit a7f67a2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments