Repository navigation
Commit a9d121c
ci(drift): open the PR as a GitHub App so its checks actually run (#38)
The drift job opened its PR with GITHUB_TOKEN. GitHub does not start workflow
runs from GITHUB_TOKEN-raised events, so the required Test (Node ...) checks
never reported and the PR was blocked on a report it could not receive. #34
has sat that way since 2026-09-02 while its body said 'build: success'.
Fixed by minting a short-lived installation token from the tpw-drift app and
handing it to create-pull-request. The push then comes from the app's identity
rather than GITHUB_TOKEN, pull_request fires normally, and CI reports. The app
holds contents:write and pull_requests:write on two repos and nothing else —
notably not workflows:write, so it cannot alter CI.
The create-an-issue steps keep GITHUB_TOKEN deliberately. They open issues on
failure, an issue does not need to trigger anything, and there is no reason to
widen the app's reach.
Also corrects the comment left on ci.yml's workflow_dispatch trigger by the
previous attempt. workflow_dispatch is genuinely a documented exception to the
no-runs rule, and it does start a run — but that run's check runs do not
satisfy branch protection. Measured, not assumed: on one PR, a dispatched run
put three successful check runs with the exact required names on the head SHA
and left it BLOCKED with an empty rollup for two minutes, while a push-event
run on the next commit cleared it at once. The trigger is kept because
re-running CI against a ref by hand is useful; the claim that it fixes drift
is removed.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 8884361 commit a9d121c
2 files changed
Lines changed: 27 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
40 | 57 | | |
41 | 58 | | |
42 | 59 | | |
| 60 | + | |
43 | 61 | | |
44 | 62 | | |
45 | 63 | | |
| |||
0 commit comments