Sonarqube

SonarQube is a self-managed, automatic code review tool that systematically helps in delivering clean code.

Usage of Sonarqube in Delivery Shield

  • Delivery Shield can mandate security scans on code repos using Sonarqube. It connects with Sonarqube to see if the required code repository has been scanned by and if not done, Delivery Shield generates a security issue.

  • Once the Sonarqube scan is done, Delivery Shield pulls the SAST scan results from and uses to calculate the overall image and application risk scoring.

  • The scanned results are available in the Vulnerability Management page, Source section of the DBOM page, and the View Open Security Issues page.

  • Users can also create custom policies based on the SAST scan results, for example, users can create a policy that blocks images built from a repository where the Sonarqube quality gate check failed at the time of build.

To Integrate Sonarqube:

  1. Navigate to Setup > Integrations.

  2. In the Source panel, click on Sonarqube.

You can use the toggle button provided below the integration tile to enable or disable it as needed.

  1. The Sonarqube integration page is displayed.

  1. Enter the URL and Token values of your Sonarqube account. (See Token for details on how to generate API token).

  2. Click Save. The tool is integrated in the source stage.

  3. You can edit the entered values by clicking the Edit option as shown below:

  4. Enter the new URL and token value and click Update.

The new values get updated.

Last updated