For the complete documentation index, see llms.txt. This page is also available as Markdown.

SonarQube

About SonarQube

You can connect OX to your self-managed SonarQube server to import the security issues it reports for your projects. OX merges them with its own findings, so your teams see one prioritized queue instead of switching tools.

SonarQube collects and analyzes source code and reports on code quality and security over time. OX reads your SonarQube projects and issues through the SonarQube Web API, using a user token that you generate on your server.

After the connection succeeds, OX imports SonarQube findings on the next scan and maps them to your OX applications. From there, they follow the same policies, severity model, and ticketing that your other findings follow.

What OX imports from SonarQube

The SonarQube connector belongs to the Code Security (Static Analysis) category. OX imports the static analysis issues that SonarQube finds in your source code.

Prerequisites

  • SonarQube account: A user with the Browse permission on the projects you want to import.

Step 1: Generate a user token [SonarQube]

OX authenticates to SonarQube with a user token. The token inherits the permissions of the account that creates it, so create it from an account that can browse the projects you want in OX.

  1. Sign in to your SonarQube server.

  2. Open your user menu, then go to My Account > Security.

  3. Enter a name for the token that identifies the OX integration, select the token type, then select Generate.

  4. Copy the token value and store it in a secure location. SonarQube shows it once.

Step 2: Connect SonarQube to OX

  1. In the OX platform, go to the Connectors page.

  2. In the search box, enter SonarQube.

  3. Select the SonarQube card under Code Security (Static Analysis). The Configure your SonarQube credentials box opens.

  1. Enter the connection fields as follows:

Field
What to use

SonarQube Host URL

The base URL of your SonarQube server, for example https://sonarqube.<customer-name>.com.

Token

The SonarQube API token you create in Step 1. OX stores it encrypted and never displays it again.

OX Broker

Enable to connect through an OX Broker. Use this option when Harbor is accessible only through an internal network or when your organization requires all connector traffic to be routed through an OX Broker.

  1. Select Verify Connectivity. OX calls SonarQube with the values you entered and reports whether the call succeeds.

  2. Select Connect.

  3. To select which SonarQube projects OX imports, select the gear icon next to Delete, select the projects you want to import, and then select Save.

    Note: The gear icon becomes active after the connection succeeds. Select it to limit the import to specific SonarQube projects.

Last updated