Pull Request Decoration: Do I need SonarCloud installed on GitHub instance?

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube Scanner 2.11
    Jenkins CI Tool

  • what are you trying to achieve
    When I submit a pull request in GitHub I want SonarQube to perform a code analysis and display results in GitHub.

  • what have you tried so far to achieve this
    Created a GitHub App and installed the app on my GitHub repository @ GitHub.com
    Configured the GitHub App in SonarQube global settings Pull Request Decoration
    Enable Pull Request Decoration at the project level
    Installed SonarQube Scanner plugin in Jenkins
    Configured SonarQube Server in Jenkins
    Configured SonarQube scanner in Jenkins

Do I need SonarCloud or any other plugins to achieve this goal?

Hello @bilalbailey

Just to make sure it’s well understood, SonarQube does not perform code analysis, you need to run a scanner. So it’s on your Jenkins that things should be configured/automated to run a code analysis when a PR is submitted, and feed the required parameter.

Nope, SonarQube and SonarCloud are different products, they do not interact.

I hope it will help.