Matching GitHub repos with SonarQube/SonarCloud projects

Hi everyone. I am new in SonarSource products. In our agency company, we’ve started using SonarQube product for our internal repositories. And we intend to use also SonarCloud service for some clients repos.

We have an internal dashboard for monitoring the DevOps metrics. And we’d like to also “pull” here the SonarSource reports.

What I’ve found:

As I understand so far, both SonarQube and SonarCloud, would let us do that by generating an api token. And I could see that the Web API documentation are quite similar for both services.

I also could see that every SonarQube/SonarCloud project has its own projectKey which can be different by the GitHub organization/repo name.

And every analyzed repo would have sonar-project.properties file in the root, which contains sonar.projectKey value.

But I would like a more automated solution in which our internal dashboard doesn’t need access to GitHub repositories files.

My question:

Knowing that in our internal dashboard, we have just general metadata about the repositories…

How could I match the GitHub repositories with the SonarQube/SonarCloud projects ?

Hey there

It sounds like one of those pieces of general metadata could be the project key.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.