SonarCloud
About SonarCloud
You can connect OX to SonarCloud to import the security issues that SonarCloud raises on your projects. OX shows them with its own findings for the same repository, so a single view covers code quality risk and security risk together.
SonarCloud is the hosted Sonar service for code quality and security. OX reads your SonarCloud organizations, projects, and issues through the SonarCloud API, using a user token that you generate in your account security settings.
After the connection succeeds, OX imports SonarCloud 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 SonarCloud
The SonarCloud connector belongs to the Code Security (Static Analysis) category. OX imports the static analysis issues that SonarCloud finds in your source code.
Prerequisites
SonarCloud account: An account with access to the organizations and projects you want in OX.
Step 1: Generate a user token [SonarCloud]
OX authenticates to SonarCloud with a user token. The token inherits the permissions of the account that creates it, so use an account that can read the projects you want to import.
Sign in to SonarCloud.
Open your account menu, then go to My Account > Security.
Enter a name for the token that identifies the OX integration, then select Generate.
Copy the token value and store it in a secure location. SonarCloud shows it once.
Step 2: Connect SonarCloud to OX
In the OX platform, go to the Connectors page.
In the search box, enter SonarCloud.
Select the SonarCloud card under Code Security (Static Analysis).

Enter the connection fields, as follows:
SonarCloud Host URL
The SonarCloud API host, https://sonarcloud.io.
Token
The SonarCloud API token you create in Step 1. OX stores it encrypted and never displays it again.
Select Verify Connectivity. OX calls SonarCloud with the values you entered and reports whether the call succeeds.
Select Connect.
To select which SonarCloud 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 SonarCloud projects.
Last updated