Skip to content

Use scoped GitHub App tokens for authority maintenance - #350

Merged
Pigbibi merged 2 commits into
mainfrom
fix/binance-authority-github-app
Oct 7, 2026
Merged

Pigbibi merged 2 commits into
mainfrom
fix/binance-authority-github-app

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Authority maintenance currently depends on a stored personal access token that requires manual renewal. This change mints a short-lived GitHub App installation token for each manual maintenance run and scopes it to BinancePlatform. Plan requests read-only Environment access; apply requests Environment write access. Actions, repository Variables, and Metadata remain read-only.

The official token action is pinned to v3.2.0. Its declared inputs omit repository Variables, so the workflow supplies the supported parser environment key for actions_variables. Token creation precedes authority materialization, the old stored PAT is no longer a fallback, and post-job revocation remains enabled. Trading execution, risk authority checks, and failure-stop behavior are unchanged.

Validation: 50 focused authority/workflow tests passed; actionlint, changed-file ruff, diff checks, and the pinned official permission-parser mapping check passed. Independent permission review passed.

Activation is pending: the dedicated App has now been registered and its public client ID configured in binance-runtime. Installation is restricted to BinancePlatform and the private key is now configured in the protected environment. A separate read-only authentication check is included, but has not run remotely. Keep the existing PAT until real App authentication is verified. The protected environment currently allows only runtime-production; merging this PR to main alone does not adopt the change at that maintenance entry point or authorize any authority update.

The runtime-production tip currently differs from BINANCE_RUNTIME_WORKFLOW_SHA. Authentication migration must not advance that approved runtime pin or include unrelated runtime changes. Production adoption and retirement of the existing PAT remain pending.

Pigbibi and others added 2 commits October 8, 2026 01:00
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit a011e56 into main Oct 7, 2026
1 check passed
@Pigbibi
Pigbibi deleted the fix/binance-authority-github-app branch October 7, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant