You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Github CLI account selection does not follow per-project selection #39080
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/desktop
Steps to reproduce
Have multiple accounts signed in for gh auth:
gh auth status
github.com
✓ Logged in to github.com account account1 (keyring)
- Active account: true
- Git operations protocol: ssh
- Token: gho_************************************
- Token scopes: 'gist', 'read:org', 'repo'
✓ Logged in to github.com account account2 (keyring)
- Active account: false
- Git operations protocol: ssh
- Token: gho_************************************
- Token scopes: 'gist', 'read:org', 'repo'
Add Github as Source control provider
Select Apply settings for **project1** across All environments at the top
Select github account1 in the Account section of the provider
Switch to Apply settings for **project2** across All environments at the top
Select github account2 in the Account section of the provider
Switch back to Apply settings for **project1** across All environments at the top
Go in the Github source control provider section
Observe: the project1's account is set to account1 instead of the expected account2.
Expected behavior
I think Github accounts should be settable per project. I work on both personal and professional projects in T3, and they're distinguished per-project. However I have a professional Github account, and a personal one. I would like my personal to be used for personal projects, and professional one for the few professional projects.
Actual behavior
The github account selection is global, and project independent, which causes much grief to this user.
Make my peace that only one set of projects can get their github account correctly, and the other half can't rely on it.. Or prompt my agents to switch the global gh auth, or run one-off github command specifying which account to use.
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.
Activity
juliusmarminge commentedon Nov 19, 2026
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.