Using SonarQube Enterprise Server v2025.1.1.
Want to setup the GitHub Integration. We are using Github with dataresidency EU.
So our API Url is https://api.COMPANYNAME.ghe.com
Config Site says Url is invalid.
Pleas fix this Bug.
THX
Using SonarQube Enterprise Server v2025.1.1.
Want to setup the GitHub Integration. We are using Github with dataresidency EU.
So our API Url is https://api.COMPANYNAME.ghe.com
Config Site says Url is invalid.
Pleas fix this Bug.
THX
Hey there.
Looks like our validation for the URL requires that either the URL is api.github.com or it can be anything else, but must be followed by /api/v3. We should fix that and I’ll ping the team.
That being said, I think that all the features of SQ related to GitHub integration should still work even if the configuration check admin-side fails. Can you go ahead and try to create a project?
Could you check what the logs say? Specifically, web.log.
2025.08.27 09:59:14 ERROR web[23235a31-c029-4015-b967-b88c7c416ff1][o.s.s.w.WebServiceEngine] Fail to process request http://sonarserver.at/api/alm_integrations/list_github_organizations?almSetting=GitHub%20Cloud&token=89bac63b324d2ab558f0
java.lang.IllegalStateException: Failed to create GitHub’s user access token. GitHub returned code 89bac63b324d2ab558f0 {“message”:“Must authenticate to access this API.”,“documentation_url”:“https://docs.github.com/rest",“status”:"401”}
Thank you, @ArminPrieschl.
There are two possible issues:
Since we don’t have access to a GHE.com organization, it’s difficult for us to investigate directly.
Here’s what we suggest:
when will 2025.5 be available?
@ArminPrieschl it’s scheduled for the beginning of October.
And, the fix is also included in SonarQube Community Build 25.9, already available. It would be great if you can start up a test instance, configure the integration with GitHub and see if you get a more specific error message.
Hi @Colin
Testet with Sonar Community Edition.
Config Page looks good (Quality Gate not supported in Sonar Community Editon. So can’t be testet)
Import Projects is not working:
2025.09.16 16:47:36 WARN web[341c5968-d0ca-4697-8f22-65dbfbbe4961][o.s.a.c.GenericApplicationHttpClient] POST response did not have expected HTTP code (was 401): {“message”:“Must authenticate to access this API.”,“documentation_url”:“https://docs.github.com/rest",“status”:"401”}
Maybe the get token request is sent to the wrong url?
In our Firewall logs it couldn’t find any communication to our ghe.com instance.
only to github.com. but this is wrong in our case. token must be from the ghe instance
THX
Hey @ArminPrieschl
Can you bump up the log level (global Admin > System > Log Level) so we can have a better idea of exactly what request was made? It would be strange for it to be made to github.com if you have defined a different API URL.
Hi @Colin
I think the url is wrong access_token request must be sent to
https://xx.ghe.com/login/oauth/access_token and not to https://api.xx.ghe.com/login/oauth/access_token
as described in github dokumentation at point 2
THX
Any News here?
Hey @ArminPrieschl
I know exactly what we need to change (I even submitted a PR) but someone from the team needs to take a look. I’m not sure when it will get prioritized – I’ll keep this thread updated!
Support of GitHub Enterprise Cloud with Data Residency will be included with the next SonarQube Server release (2025.6)!
Hi @TomVanBraband, @Colin
Whats the release date for 2025.6?
THX
Hi,
Look for it mid-month.
HTH,
Ann