Right now, when you do gh auth status, it can output multiple accounts, only one of which is active:
% gh auth status
github.com
✓ Logged in to github.com account tjschuck (GITHUB_TOKEN)
- Active account: true
- Git operations protocol: https
- Token: ghp_************************************
- Token scopes: 'notifications', 'read:org', 'repo', 'workflow'
✓ Logged in to github.com account tjschuck (keyring)
- Active account: false
- Git operations protocol: https
- Token: gho_************************************
- Token scopes: 'gist', 'read:org', 'read:packages', 'repo', 'workflow'
Ideally, you'd be able to do something like gh auth status --active to get only the active account listing. This is useful if you want to, for example, check the current scopes available for the active token.
Right now, when you do
gh auth status, it can output multiple accounts, only one of which is active:Ideally, you'd be able to do something like
gh auth status --activeto get only the active account listing. This is useful if you want to, for example, check the current scopes available for the active token.