Sonarqube
Last updated
Last updated
SonarQube is a self-managed, automatic code review tool that systematically helps in delivering clean code.
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.
Navigate to Setup > Integrations.
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.
The Sonarqube integration page is displayed.
Enter the URL and Token values of your Sonarqube account. (See Token for details on how to generate API token).
Click Save. The tool is integrated in the source stage.
You can edit the entered values by clicking the Edit option as shown below:
Enter the new URL and token value and click Update.
The new values get updated.