Commit ada5ab5
Rebase pushes with the machine-user PAT (action-translation#125) (#187)
* Rebase pushes with the machine-user PAT (action-translation#125)
Commits pushed with the default GITHUB_TOKEN trigger no workflows, so a
rebased branch gets a run-less head: force-pushed re-translated content
lands unreviewed, and with required checks a run-less head blocks
merging. Measured both ways on the test harness 2026-07-21 — zero runs
under GITHUB_TOKEN, review triggered under the PAT.
Sync mode has always passed the PAT for exactly this reason; rebase
pushing to the same PRs with a weaker token was an inconsistency, not a
decision.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Rebase: require a same-repo head branch (fork noise guard)
Fork PRs never receive secrets, so the PAT is not exposed — but a
merged fork PR whose branch matched a translation prefix would start
the job with an empty token and fail red. Skip it instead. Mirrors
action-translation#130.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent c5c2ce1 commit ada5ab5
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
49 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
0 commit comments