I experience an issue using SourceTree and GitHub PATs (Personal Access Tokens).
SourceTree version: 3.4.26
OS: Windows 11
Preconditions: I have removed all accounts using Tools > Options > Authentication
1. I want to add a new repo tab and click '+'
2. Then select 'Remote' and 'Remote repositories' screen appear
3. Then I click 'Add an account...' and dialog 'Edit Hosting Account' is shown
4. I select GitHub, HTTPS, Personal Access Token
5. Then I click 'Refresh Personal Access Token'
6. In the dialog showing I put my PAT in the 'Password' field and leaving 'Username' blank
7. Clicks 'OK'
8. Now I get an error message in the 'Edit Hosting Account' dialog:
Login failed Authentication failed for GitHub with username myusername - please check your account settings.
9. Now I switch to 'Clone' - tries to clone - and it works! Hence the account has been created despite the error message.
9.b. I also tried to run git pull on CLI - and it worked.
9.c. When I tried to Pull an existing local repo in ST it worked.
So something seems to be wrong when creating the account in Sourcetree, and this also somehow affects/stopping the account to be listed in 'Remote repositories' screen.
This seems to be quite similar to what is reported previously here:
https://community.atlassian.com/forums/Sourcetree-questions/Unable-to-connect-to-Github-Enterprise-with-PAT/qaa-p/3117462#M46540
How is the process of investigating and fixing such issues for Sourcetree?