> For the complete documentation index, see [llms.txt](https://docs.hivel.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hivel.ai/integrations/sonarqube/on-prem.md).

# On-Prem

How to integrate Sonarqube with Hivel?

### How to Integrate SonarQube with Hivel (On-Prem)

Integrating SonarQube with Hivel enhances the quality and security of your codebase by enabling continuous code inspection and quality monitoring. SonarQube helps detect bugs, vulnerabilities, and code smells, ensuring that your software projects maintain high standards of code quality.

#### Step 1: Whitelist IP Addresses in Your Infrastructure

Before connecting, whitelist the following IP addresses to ensure a secure and uninterrupted connection:

**Mandatory IPs:**

* 107.23.139.76
* 3.219.89.23

**Recommended, but Optional IPs:**

* 45.119.114.218
* 183.82.116.218

#### Step 2: Generate an Access Token

**Application: SonarQube**

1. Log in to your SonarQube account
2. Click the name icon in the top right corner
3. Select "My Account" from the dropdown menu

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FqsiPxfaJ5nBD2p9ciXBc%2Fimage.png?alt=media&amp;token=21858d36-722f-4efb-a690-38777760f6a7" alt=""><figcaption></figcaption></figure>

4. Navigate to the "Security" tab

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FLLgNSaSrjUfnKjuzVC6s%2Fimage%20(50).png?alt=media&amp;token=75fbae5e-2b2e-4091-bef2-6022836857c7" alt=""><figcaption></figcaption></figure>

4. Go to Generate a token
5. Enter a token name (preferably "Hivel")
6. Click "Generate"
7. Copy and save the generated token securely

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FLiR1AYc9cVS3GN9pgp0y%2Fimage%20(52).png?alt=media&amp;token=d2616e8f-dcbb-42bd-829c-facfc9c446e7" alt=""><figcaption></figcaption></figure>

8. Copy the URL from the address bar of your SonarQube server and save it

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FicQLYFVpxv4PcXMbh3Z6%2Fimage.png?alt=media&amp;token=4505b81a-3611-4bf2-9f97-344c8dbc266e" alt=""><figcaption></figcaption></figure>

#### Step 3: Create a Webhook in SonarQube

**Application: SonarQube**

1. Log in to your SonarQube platform
2. Click "Administration" at the top of the page

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FGIqnEq1irDfi7dQw0LaV%2Fimage%20(54).png?alt=media&amp;token=79700cd3-bde2-47f9-9d09-1cbe4d6e14de" alt=""><figcaption></figcaption></figure>

1. Select "Configuration" from the administration options
2. Click "Webhooks" and create a new webhook

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FWJKHQI9CvriZKZAQKemC%2Fimage%20(55).png?alt=media&amp;token=a41b502f-9f67-4541-89d3-365c1d881ee8" alt=""><figcaption></figcaption></figure>

3. Name the webhook "Hivel"
4. Enter this URL: `https://app.hivel.ai/hivel/webhook/sonar?orgId={OrgID}`&#x20;

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FFWmWHUnOdGHB4VAfmbq6%2Fimage%20(56).png?alt=media&amp;token=3977a7a4-8b79-40ae-8a6c-e3c937fe9320" alt="" width="375"><figcaption></figcaption></figure>

> Note: Contact Hivel for your OrgID

#### Step 4: Connect SonarQube to Hivel

**Application: Hivel Platform**

1. Log in to Hivel
2. Go to Settings
3. Select Integrations

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FBmr0wKVXridd3vsOMGf0%2FScreenshot%202026-08-18%20at%205.28.40%E2%80%AFPM.png?alt=media&amp;token=bcb84e79-eca3-470e-a077-ac43462fb941" alt=""><figcaption></figcaption></figure>

4. Find the SonarQube card and click "Connect"

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FxxEg1XMIeshN0mrCAqB6%2FScreenshot%202026-09-15%20at%203.03.08%E2%80%AFPM.png?alt=media&amp;token=136f9b3c-3fba-4866-ad7d-54292f40d4a3" alt=""><figcaption></figcaption></figure>

4. Fill in the required details:

   * **Instance Type:** Select SonarQube Server (self-hosted)
   * **SonarQube URL:** Paste the server URL from Step 2.9
   * **Access Token:** Paste the token from Step 2.8

   <figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2Ff7BcrX2bqFwcJK6NGqwu%2Fimage.png?alt=media&amp;token=b5c69994-fc92-4270-aaed-447a8ede6e9c" alt=""><figcaption></figcaption></figure>
5. Click Submit

You've successfully connected your SonarQube instance to Hivel. For further assistance, contact the Hivel support team at [<mark style="color:purple;">support@hivel.ai</mark>](mailto:support@hivel.ai).

***

**Continue setting up your integrations**

Next: Connect additional on-prem tools to complete your setup in [Integrations](https://docs.hivel.ai/integrations#on-prem-server-integrations).
