# Version Control Integration

Add version control integration

1. Navigate to global settings -> Integrations -> Version Control
2. Press "+" button

<figure><img src="/files/uvexHGN5wo70RI96QDpm" alt=""><figcaption></figcaption></figure>

3. Choose your system

<figure><img src="/files/XDENxofkLRkQxFTbAb1D" alt="" width="375"><figcaption></figcaption></figure>

4. Fill the form

<figure><img src="/files/RKwxAOOrpWSpbZoRsoJD" alt="" width="375"><figcaption></figcaption></figure>

5. That's it. Now you can [import repositories](/appsec-portal/features/asset-management/how-to-import-repositories-from-version-control.md) from your version control system or configure your code scan process

## Set up a webhook

1. Open your newly created integration and get the webhook's URL

<figure><img src="/files/NM2aE8mewIClLbodiOpm" alt=""><figcaption></figcaption></figure>

2. Now open your GitLab group's Settings->Webhooks page and add a webhook

<figure><img src="/files/WahOCsuyUheg8U8XrUL5" alt=""><figcaption></figcaption></figure>

3. Put that webhook URL, which portal showed you before and select 2 triggers

<figure><img src="/files/k2Ub2Vi8q2Axa6F1VgSc" alt="" width="375"><figcaption></figcaption></figure>

## Scan every single commit

Just switch this toggle on your integration page

<figure><img src="/files/oPgT78KBRVIidlUoc19t" alt=""><figcaption></figcaption></figure>

## Comment on pull requests

Set up your preferred process then

<figure><img src="/files/QAmy9AD741IO2P0BL81d" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.whitespots.io/appsec-portal/general-portal-settings/version-control-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
