Setting Up GitHub Integration Without Actions

Must-share information (formatted with Markdown):

  • which versions are you using: SonarQube Enterprise: Version 9.7.1
  • what are you trying to achieve: Setup GitHub / PR Decorations

I’m trying to find a good tutorial / walkthrough for setting up SonarQube PR Decorations for GitHub integration without using GitHub Actions.

Is there a good walkthrough / tutorial for this? I’ve only found options that use GitHub Actions, but we don’t support that.

I can set up webhooks to kick off CI which runs SonarScanner and uploads reports to the sonar instance. That’s working fine. All I’m missing is getting that information beck into the GitHub repo as a PR Decoration comment.

Which CI are you using?

GitHub → Jenkins → Gradle / Kotlin → Sonar Scan → GitHub

Does this need to be set up in Jenkins? Does GitHub setup require GitHub Actions?

No, you can use Jenkins. Here’s the documentation on the Jenkins extension for SonarQube.

If I have a SonarQube GitHub App installed, following the instructions from GitHub integration

And I’m using existing webhooks to kick off a Jenkins CI.
And that Jenkins CI process builds a repo and runs tests against it, along with running a SonarScan using gradle, with the following set of sonar params set:

  • sonar.projectKey
  • sonar.projectVersion
  • sonar.core.codeCoveragePlugin
  • sonar.pullrequest.key
  • sonar.pullrequest.branch
  • sonar.pullrequest.base
  • sonar.pullrequest.key
  • sonar.login
  • sonar.coverage.jacoco.xmlReportPaths
  • sonar.androidLint.reportPaths

Should all that be enough to get PR Decorations to work in GitHub? Is the Jenkins Plugin needed at that point?

I’m seeing a warning on recent upload:

Failed to report status to Devops platform: can't find GitHub App. Contact your SonarQube administrator to fix the Github App configuration.

Does this suggest to you that if I can fix the Github App configuration issue, then I should start to see Pull Request Decorations with the current basic setup?


And, before troubleshooting the Github application further, I have to suggest that you update to a supported version of SonarQube.

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

9.7 → 9.9.2 → 10.2.1 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.