We are using SonarQube Community Edition 9.2.3 version and I would like to get the git repository/source code url of gitlab/github project based on the any of the parameters of the project. Is there any way to get this source code url from SonarQube?
You have the ability to pass in sonar.links.scm as an analysis parameter. If that’s provided, you’ll be able to query it back out of the project using the Web APIs.
I take that back. If your project was imported from a DevOps platform or has been configured for PR decoration, then the repo name is stored, and you can see it in Project Settings → DevOps Platform Integration Name → Repository name.
You can use your browser dev tools to eavesdrop to see which calls the UI made to accomplish the action.