Commit e85318b
ci(config): move auto-labeler to pull_request_target for fork PRs (#2188)
* test(cli): add dockerized sshd fixture for deploy SSH tests
Two openssh-server containers (ports 22022/22023) plus lifecycle
helpers. Deterministic test keypair committed to the repo for
reproducibility; no production value.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* test(cli): add deploy.yml fixtures for ConfigLoader tests
* feat(cli): add ProxyCommands with kamal-proxy hand-off
* ci(config): move auto-labeler to pull_request_target for fork prs
the `label` job in pr.yml uses the `pull_request` trigger, which github
forcibly issues a read-only GITHUB_TOKEN to for fork PRs — overriding the
workflow's `permissions: pull-requests: write` declaration.
`actions/labeler@v6` then fails with "Resource not accessible by
integration" on every fork PR (seen on #2167, #2172, #2180, #2183).
split the labeler into its own workflow triggered by `pull_request_target`,
which runs in the base repo's context and grants a write-scoped token even
for fork PRs. the remaining jobs (commitlint, tests) keep the safer
`pull_request` trigger since they execute checked-out PR code.
this is the pattern recommended by actions/labeler's docs for repos that
accept fork contributions. it's safe because the labeler never checks out
the fork's code — it only reads PR metadata and .github/labeler.yml from
the base branch via the API.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ee67059 commit e85318b
2 files changed
Lines changed: 25 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 13 | | |
27 | 14 | | |
28 | 15 | | |
| |||
0 commit comments