# GitLab Connection

To enable AquilaX to scan private GitLab repositories, you must grant the platform access to your GitLab account or self-hosted instance.

### Steps

1. **Log in** to your AquilaX account: <https://aquilax.ai>
2. **Go to your Organizations** page: <https://aquilax.ai/app/dashboard/pages/organizations/>
3. **Find the organization** you want to connect and click the **three-dot menu** next to it, then select **Manage**
4. On the **Configuration** page, scroll to the **Integrations** section
5. Under **GitLab**, click **+ Connect**
6. In the dialog that appears:
   * Enter your **GitLab instance URL** (either a public `gitlab.com` account or a private/self-hosted GitLab instance)
   * Enter your **GitLab Access Token** with the necessary permissions for repository access (the access granted must be at least `read_api` and `read_repository`, alternative you can select only `api`)\
     \\

     <figure><img src="/files/m2u8XtYvCMT3XDYM7Vr3" alt="" width="375"><figcaption></figcaption></figure>
7. Click **Next** and select the **GitLab groups** you want to grant access to

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

Once connected, **refresh the page** to confirm the integration status and verify that AquilaX has access. You can now scan any repository from the connected groups\
\\

**Notes**

* If you have already connected your GitLab account, you can click View Details in the Integrations section to:

  • Update the connection details to refresh connection and list of repos

  • Delete the integration and start over
* Only Organization Owners can perform these operations


---

# 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.aquilax.ai/user-manual/connect-aquilax-with-git/gitlab-connection.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.
