Commit afdaa35
committed
ci: add checkout step to labeler workflow and use pull_request_target
actions/labeler@v6 falls back to the API when the config file is not found
locally. Adding actions/checkout ensures .github/labeler.yml is available
in the workspace, removing the API fallback.
Switching the trigger from pull_request to pull_request_target gives
GITHUB_TOKEN write access on pull-requests for fork PRs, fixing the
"Resource not accessible by integration" error that blocked label assignment.1 parent 2b046cc commit afdaa35
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments