[TT-16977] fix: dashboard resolver credential fix (release-5.12.1)#8056
[TT-16977] fix: dashboard resolver credential fix (release-5.12.1)#8056buger merged 1 commit intorelease-5.12.1from
Conversation
Prevents GITHUB_TOKEN AUTHORIZATION header from overriding ORG_GH_TOKEN in cross-repo git ls-remote calls. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
This PR fixes a credential handling bug in the Files Changed Analysis
Architecture & Impact Assessment
Workflow Credential FlowThe diagram below illustrates how the credential handling is fixed. graph TD
subgraph sg1 "Problematic Flow (Before)"
A[actions/checkout] --|Writes limited GITHUB_TOKEN to git config|--> B(Git Config)
C[git ls-remote tyk-analytics] --|Reads GITHUB_TOKEN from git config|--> B
C --|Fails silently (insufficient permissions)|--> D(Fallback to Default Image)
end
subgraph sg2 "Corrected Flow (After)"
A_fix[actions/checkout with persist-credentials:false] --|Does NOT write token|--> B_fix(Git Config)
C_fix[git ls-remote tyk-analytics] --|Uses correct ORG_GH_TOKEN from environment|--> E{Check tyk-analytics repo}
E --|Branch Found|--> F(Use Correct Dashboard Image)
E --|Branch Not Found|--> G(Fallback to Default Image)
end
Scope Discovery & Context ExpansionThe impact of this change is narrowly focused on the release automation for the Tyk Gateway. The Metadata
Powered by Visor from Probelabs Last updated: 2026-04-16T16:55:03.956Z | Triggered by: pr_opened | Commit: 705a3c8 💡 TIP: You can chat with Visor using |
|
API Changes no api changes detected |
✅ Security Check PassedNo security issues found – changes LGTM. ✅ Security Check PassedNo security issues found – changes LGTM. \n\n✅ Architecture Check PassedNo architecture issues found – changes LGTM. ✅ Performance Check PassedNo performance issues found – changes LGTM. Powered by Visor from Probelabs Last updated: 2026-04-16T16:54:58.515Z | Triggered by: pr_opened | Commit: 705a3c8 💡 TIP: You can chat with Visor using |
🚨 Jira Linter FailedCommit: The Jira linter failed to validate your PR. Please check the error details below: 🔍 Click to view error detailsNext Steps
This comment will be automatically deleted once the linter passes. |
Summary
persist-credentials: falseto theactions/checkoutstep in theresolve-dashboard-imagejobgit ls-remotefor cross-repo branch checking against tyk-analyticsTest plan
resolve-dashboard-imagejob correctly detects matching branches in tyk-analytics when they existGenerated with Claude Code