fix(ci): preflight locale publisher permissions#103671
Merged
Merged
Conversation
Contributor
Author
|
Land-ready proof for exact head
Known live-proof gap: ClawSweeper contents-token issuance plus generated branch/PR mutation can only be proven from trusted |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #103570
What Problem This Solves
Fixes an issue where the Control UI and native locale refresh workflows completed their translation matrices but could not publish the generated branch because the available GitHub App tokens did not have repository contents-write permission.
Why This Change Was Made
The workflows now mint two exact-repository, least-privilege tokens: a ClawSweeper token for generated branch contents and a Mantis token for pull-request mutation. A mandatory token preflight runs before either provider-backed locale matrix, and a main-only preflight mode gives maintainers a cheap permission-drift diagnostic without exposing App secrets to branch-controlled workflow code.
The shared publisher delegates token creation to one composite action, and both workflows include that action in their trigger and stale-input paths. Guard tests lock the token scopes, dispatch boundary, preflight dependency, publisher wiring, and changed-test routing.
User Impact
Automated locale refreshes fail before spending translation-provider capacity when App installation permissions drift, and successful runs can publish reviewable generated pull requests again. There is no direct product behavior change.
Evidence
tbx_01kx5x3a4nqphdnex9yte298jj: 229/229 focused workflow and changed-target tests passed.pnpm check:workflowspnpm check:changed -- <7 touched files>oxfmt --checkand localactionlint