Skip to content

chore(secrets): rename MCP_SECRETS_PAT -> GH_SECRETS_PAT, standardize for MCP + Grok#774

Merged
aaronjmars merged 1 commit into
mainfrom
chore/standardize-gh-secrets-pat
Jul 24, 2026
Merged

chore(secrets): rename MCP_SECRETS_PAT -> GH_SECRETS_PAT, standardize for MCP + Grok#774
aaronjmars merged 1 commit into
mainfrom
chore/standardize-gh-secrets-pat

Conversation

@aaronjmars

Copy link
Copy Markdown
Collaborator

What

Renames the secrets-write PAT MCP_SECRETS_PAT -> GH_SECRETS_PAT across the repo, so one standardized PAT serves both OAuth refresh-persistence paths:

Both read GH_SECRETS_PAT and fall back to GH_GLOBAL.

Why

#773 added the grok durable-refresh and reused the MCP-named PAT as an interim. Now that a single secrets-write credential drives two features, its name should reflect that. MCP_SECRETS_PAT was still under [Unreleased] (never shipped in a tagged release), so this is the cheapest moment to standardize the name.

Scope

Pure rename + two wording touch-ups, 18 files:

  • Scripts: run-grok.sh, mcp-oauth-refresh.sh read GH_SECRETS_PAT // GH_GLOBAL.
  • Workflows: aeon.yml / messages.yml grok env now passes GH_SECRETS_PAT.
  • Dashboard: secrets-catalog entry + McpPanel + GrokAuthModal point at GH_SECRETS_PAT; the catalog description and the secrets.md reference now name both MCP and the Grok harness.
  • Docs: harnesses.md, mcp-oauth.md, CONFIGURATION.md, .claude/skills/aeon/references/{mcp,secrets}.md, skills/robinhood-mcp/SKILL.md.
  • CHANGELOG: rename note under Changed.

Operator impact

Anyone tracking main who already set MCP_SECRETS_PAT should re-add the PAT as GH_SECRETS_PAT. GH_GLOBAL users are unaffected (still the fallback). No tagged release shipped the old name.

Test

  • bash scripts/tests/test_run_grok.sh -> ALL PASS
  • bash scripts/tests/test_mcp_oauth_refresh.sh -> ALL PASS
  • actionlint clean; workflows parse.

… for MCP + Grok

One secrets-write PAT now serves both OAuth refresh-persistence paths:
- MCP OAuth (scripts/mcp-oauth-refresh.sh), and
- Grok X-account OAuth (scripts/run-grok.sh section 2b, landed in #773).

Both read GH_SECRETS_PAT and fall back to GH_GLOBAL. #773 reused the MCP-named PAT
as an interim; this generalizes the name now that it drives two features.
MCP_SECRETS_PAT was still under [Unreleased], so no tagged release ever shipped it:
operators tracking main who already set it should re-add the PAT as GH_SECRETS_PAT;
GH_GLOBAL users are unaffected.

- scripts/run-grok.sh, scripts/mcp-oauth-refresh.sh: read GH_SECRETS_PAT // GH_GLOBAL
- aeon.yml / messages.yml: grok install/run env now passes GH_SECRETS_PAT
- dashboard: secrets-catalog entry + McpPanel + GrokAuthModal point at GH_SECRETS_PAT;
  the catalog description + secrets reference now name both MCP and the Grok harness
- docs (harnesses, mcp-oauth, CONFIGURATION) + .claude skill references
- CHANGELOG: rename note under Changed
- tests updated; test_run_grok.sh + test_mcp_oauth_refresh.sh both green
@aaronjmars
aaronjmars merged commit 4648290 into main Jul 24, 2026
8 checks passed
@aaronjmars
aaronjmars deleted the chore/standardize-gh-secrets-pat branch July 24, 2026 18:43
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