[TT-17030] Migrate workflows from PAT to GitHub App token#112
Conversation
Replace ORG_GH_TOKEN (PAT) with GitHub App token generation using actions/create-github-app-token in godoc.yml and nancy.yaml workflows. Update workflow_call secret declarations from ORG_GH_TOKEN to PROBE_APP_ID and PROBE_APP_PRIVATE_KEY. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
This PR migrates two reusable GitHub Actions workflows, The core modification involves introducing the This is a breaking change for all workflows that consume Files Changed Analysis
The changes are consistent and localized to these two workflow files, with a total of 25 additions and 5 deletions. Architecture & Impact Assessment
Authentication Flow Changegraph TD
subgraph "Old Flow (PAT)"
A[Caller Workflow] -- "passes ORG_GH_TOKEN" --> B[Reusable Workflow];
B -- "uses ORG_GH_TOKEN for" --> C[Git Operations];
end
subgraph "New Flow (GitHub App)"
D[Caller Workflow] -- "passes App ID & Key" --> E[Reusable Workflow];
E -- "uses App ID & Key with" --> F(actions/create-github-app-token);
F -- "generates short-lived token" --> E;
E -- "uses token for" --> G[Git Operations];
end
Scope Discovery & Context ExpansionThe immediate scope is limited to the two modified workflow files. However, the true impact extends to every CI pipeline that utilizes them. To fully assess the blast radius of this breaking change, it would be necessary to find all call sites of these workflows across the organization's repositories. If tools were available, the next step would be to perform a codebase search for strings like:
This would identify all dependent workflows that need to be updated to ensure CI pipelines do not break upon merging this change. Metadata
Powered by Visor from Probelabs Last updated: 2026-04-22T15:14:56.079Z | Triggered by: pr_opened | Commit: fde14e8 💡 TIP: You can chat with Visor using |
Security Issues (2)
Architecture Issues (4)
✅ Performance Check PassedNo performance issues found – changes LGTM. Powered by Visor from Probelabs Last updated: 2026-04-22T15:14:54.659Z | Triggered by: pr_opened | Commit: fde14e8 💡 TIP: You can chat with Visor using |
Summary
ORG_GH_TOKEN(PAT) with GitHub App token generation usingactions/create-github-app-tokeningodoc.ymlandnancy.yamlworkflow_callsecret declarations: replaceORG_GH_TOKENwithPROBE_APP_IDandPROBE_APP_PRIVATE_KEYgit config insteadOfpatterns in both workflows to use the generated app tokenPROBE_APP_IDandPROBE_APP_PRIVATE_KEYinstead ofORG_GH_TOKENTest plan
PROBE_APP_IDandPROBE_APP_PRIVATE_KEYsecrets are configured at the org level🤖 Generated with Claude Code