> For the complete documentation index, see [llms.txt](https://docs.whitespots.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.whitespots.io/appsec-portal/general-portal-settings/version-control-integration.md).

# 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>
