GitHub Pull Request does not show analysis results

Hi.

In a private project using SonarCloud,
Analysis results are not displayed in pull request.

  • The pull request analysis is successful.
  • Analyzed pull request list is displayed in the select box on the upper left on SonarCloud project.
  • Pull Request checks tab remains 【Waiting for checks information】
  • The following parameters are given to the options of mvn.
    • sonar.pullrequest.base
      • Pull Reuqest Target branch name
    • sonar.pullrequest.provider
      • GitHub
    • sonar.pullrequest.github.repository
      • orgnaizationName/repositoryName
    • sonar.pullrequest.key
      • set pull request number
    • sonar.pullrequest.branch
      • set pull reuqest source branch
    • sonar.pullrequest.github.summary_comment
      • true
  • ALM used
    • GitHub
  • CI system used
    • Jenkins
  • Scanner command used when applicable
    • mvn install verify sonar:sonar
  • Languages of the repository
    • java
    • php

I have the SonarCloud application installed on the orgnaization.
However, private repository is not displayed on the project creation page.
I suspect it has something to do with the cause.

  • The message’installed’is displayed on the target Organization.

Hi @anitta,

Welcome to the community!

Is your SonarCloud organization bound to GitHub? Can you see the Github icon next to you organization name?

Best,
Marcin

Hi @Marcin_Majewski

Thank you reply!

Is your SonarCloud organization bound to GitHub? Can you see the Github icon next to you organization name?

The GitHub icon is not show orgnaization name.

It is displayed like this on the GitHub Authentiacation.

Hi @anitta,

The reason you are not getting anything in your Pull Request, is the fact that your organization is not bound. You can fix this by going to Administration → Organization Settings and binding it to GitHub. This is required for the GitHub checks / pull request comments to appear.

image

Best,
Marcin