Configuring pull request decoration for SonarQube Server with Azure Pipelines and GitHub repositories

Time to complete icon1 hour to complete

Overview

This course teaches you how to integrate SonarQube Server pull request (PR) decoration and PR blocking into your GitHub PRs by running your pipeline in Azure DevOps. By configuring PR decoration, you'll enhance the efficiency, security, and quality of your software development.

Learning objectives

After completing this course, you’ll be able to:

  • Configure the GitHub pull request decoration feature with SonarQube to display results directly in your pull requests.
  • Configure a branch protection rule to prevent a merge when a quality gate fails.

Key topics

  • Enhancing code review with PR decoration.
  • Configuring GitHub for PR decoration and merge prevention.
  • Configuring SonarQube Server for PR decoration
  • Testing PR decoration
  • Preventing a PR merge when a quality gate fails.

Target audience

  • DevOps engineer
  • Developer
  • Engineering leader
  • Analyst

Prerequisites

  • Complete the setup of code analysis with GitHub Actions.
  • Refer to the Configuring code analysis for SonarQube Server with Azure DevOps Pipelines and GitHub repositories course in the Sonar Learning Center for guidance on setup.