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.
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.host.url
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?