Skip to content

Commit 8cf99dc

Browse files
mmckyclaude
andcommitted
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>
1 parent b4ba299 commit 8cf99dc

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/rebase-translations.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,11 @@ jobs:
4646
with:
4747
mode: rebase
4848
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
49-
github-token: ${{ secrets.GITHUB_TOKEN }}
49+
# PAT rather than the default GITHUB_TOKEN, deliberately: commits pushed
50+
# with GITHUB_TOKEN trigger no workflows (GitHub's recursion guard), so a
51+
# rebased branch ends up with a run-less head — force-pushed re-translated
52+
# content lands unreviewed, and with required checks a run-less head blocks
53+
# merging. Validated both ways on the test harness, 2026-07-21: zero runs
54+
# under GITHUB_TOKEN, review triggered under the PAT.
55+
# See QuantEcon/action-translation#125.
56+
github-token: ${{ secrets.QUANTECON_SERVICES_PAT }}

0 commit comments

Comments
 (0)