Skip to content

Sonarqube Integration with GitHub

After installed the sonarqube community plugin, we can analyze pull request now.

To allow sonarqube to decorate the pull request with analysis result, complete following steps,

  1. Create a github app and configure the github app in sonarqube global setting following guide github-integration
  2. Install the created github app to your repositories that need to integrate with sonarqube following guide installing-github-apps

  3. Enable the PR decoration in sonarqube

    In project General Settings -> Pull Request Decoration, configure the required options, and start an analysis, sonarqube will decorate the pull request.

  4. Analyze pull request with sonarscanner

    The following parameters are required,

    Properties
    sonar.pullrequest.key
    sonar.pullrequest.branch
    sonar.pullrequest.base