mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[PR #281] [MERGED] fix: merge credentials from keychain and config in auth status #404
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#404
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/281
Author: @rudrankriyam
Created: 1/29/2026
Status: ✅ Merged
Merged: 1/29/2026
Merged by: @rudrankriyam
Base:
main← Head:fix/auth-status-merge-credentials📝 Commits (2)
d02dbc2fix: merge credentials from keychain and config in auth status8c58ba6fix: normalize defaults and surface config warnings📊 Changes
5 files changed (+267 additions, -24 deletions)
View changed files
📝
Agents.md(+7 -0)📝
internal/auth/doctor.go(+29 -11)📝
internal/auth/keychain.go(+100 -10)📝
internal/auth/keychain_test.go(+118 -1)📝
internal/cli/auth/auth.go(+13 -2)📄 Description
Summary
asc auth statusto show credentials from both keychain and config file--bypass-keychainto be invisibleTestStoreCredentialsFallbackToConfigwas writing to user's actual configProblem
When running:
The credential was stored in config, but
asc auth statusonly showed keychain credentials:Root Cause
ListCredentials()would return ONLY keychain credentials when any existed:Additionally,
TestStoreCredentialsFallbackToConfigsetHOMEbut notASC_CONFIG_PATH, causing it to write test data to the local repo's.asc/config.jsondue to config path resolution order.Solution
ListCredentials()to merge credentials from both keychain and configASC_CONFIG_PATHfor proper isolationTest plan
TestListCredentials_MergesKeychainAndConfigtestTestStoreCredentialsFallbackToConfigto useASC_CONFIG_PATHasc auth statusnow shows both keychain and config credentials🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.