Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to modify GitHub OAuth scopes requested?

Mike Saavedra
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 28, 2021

Our enterprise just switched from BitBucket to GitHub Enterprise (hosted). I have access to several orgs inside the enterprise. When attempting to add the GitHub account to SourceTree I have two options (GitHub and GitHub Enterprise) but only one, GitHub, allows me to use OAuth. When using OAuth and clicking 'refresh token', a browser tab opens (github already logged in and PAT already created) asking me if I want to add SourceTree as a trusted app. All is well so far, but in the list of orgs that I belong to, only one is checked (not the one I really need) and the rest have an 'authorize' button next to them. Clicking the 'authorize' button it tells me that I'm about to ask the owners for permission. Well, I take a look at all the permissions (scopes) that SourceTree is asking for and I know full well they'll never allow it. So, now to my question...

Why does SourceTree ask for so many (seemingly all) permissions/scopes from GitHub? Is there a way to modify the scopes being requested?

0 answers

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events