SonarCloud Summary in Github with manual analysis

Template for a good new topic, formatted with Markdown:

  • ALM used - GitHub
  • CI system used - Codeship CI
  • Scanner command used when applicable (private details masked)
  sonar-scanner \
    -Dsonar.login=$SONAR_LOGIN \
    -Dsonar.pullrequest.key=$CI_PR_NUMBER \
    -Dsonar.pullrequest.branch=$CI_BRANCH \
    -Dsonar.python.coverage.reportPaths=coverage.xml
  • Languages of the repository - Python
  • Only if the SonarCloud project is public, the URL - private repos
  • Steps to reproduce
  • Potential workaround

Hello team!

Let me explain my organization problem, I’m hoping to get some clue.

First, we start using SonarCloud as a tool to check the quality of the code, with the automatic analysis. We have the app sonarcloud installed in github with access to all of our repos. That was working ok, we were getting back a summary of the analysis and we could even block the PR if that analysis was red. Nice!

Then we move from the automatic to the manual in the CI in order to get the analysis and the code coverage. Analisys are great however in the new repos we create/add to sonarcloud we are not able to get back this summary or even to create activate the automatic analysis… neither we have the option to block the PR is the analysis is red.

I checked the configuration in sonarcloud and in github from repos that do get the summary back and those that no and they are the same… and right now i’m clueless…

The integration with github in the admin page - general settings - pull request of the propject is activated, however i can only choose betwen azure and bitbucket… I also try to set sonar.pullrequest.provider=github in sonar-project.properties without luck…

Any idea?
Best maldo!

Hello maldo,

Welcome to the community!

Just to clarify, so I can provide good assistance here. The projects that you analyze in the CI, can you tell me how you created them? You imported them through “Analyze new project” or you created project manually? Do you see “Github” logo with mouseover text “This project is bound to Github” ? like this: image

Best,
Marcin

2 Likes

Hello Marcin,

F**k no! I create them manually as I thought the organization was already bound I thought it was all good!

I just removed a manual repo and I did the analyze new project and it works!!!

Thank you for the fast answer and for solving the issue!!

Best maldo!

2 Likes

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