SonarQube Github PR decoration is not working

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube: 7.7
    Scanner: 3.3.0.1492-linux
  • what are you trying to achieve
    I want to enable SonarQube Github PR decoration (comments)
  • what have you tried so far to achieve this

I created a Github app with checks, Pull requests and commit statuses read&write permission.
The checking is working but there is no comment in the PR.

The current configuration for the scanner is

- /tmp/sonar-scanner-3.3.0.1492-linux/bin/sonar-scanner -Dsonar.projectKey=<project> -Dsonar.sources=. -Dsonar.host.url=$SONARQUBE_URL -Dsonar.login=$SONARQUBE_LOGIN -Dsonar.pullrequest.branch=$(echo $TRAVIS_PULL_REQUEST_SLUG | awk '{split($0,a,"/"); print a[1]}')/$TRAVIS_PULL_REQUEST_BRANCH -Dsonar.pullrequest.provider=Github -Dsonar.pullrequest.github.repository=$TRAVIS_REPO_SLUG -Dsonar.pullrequest.key=$TRAVIS_PULL_REQUEST -Dsonar.pullrequest.base=master

Is there any other permission or configuration that I have to set to make it work?

[Update]

I set GitHub API URL, GitHub App name, GitHub App ID and GitHub App private key.

Hi,

When we upgraded to using a Check, we dropped the comments since there was no good way to manage them when they became stale.

 
Ann

1 Like