> For the complete documentation index, see [llms.txt](https://docs.aquilax.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aquilax.ai/user-manual/connect-aquilax-with-git/github-connection.md).

# GitHub Connection

To enable AquilaX to scan your GitHub repositories, you must grant the platform access to your GitHub account or organization. This integration uses GitHub's official OAuth app flow, giving you granular control over which repositories are shared.

#### 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 **Repositories & git Integrations** section
5. Under **GitHub**, click **+ Connect**<br>

   <figure><img src="/files/Rd2o1H4zm72SAiB1ZQhA" alt="" width="563"><figcaption></figcaption></figure>
6. You will be redirected to GitHub to install and authorize the **AquilaX AI Security** app. Select the account to install on, then choose which repositories to grant access to:

   * **All repositories** - applies to all current and future repositories owned by the account, including public repositories (read-only)
   * **Only select repositories** - choose specific repositories; also includes public repositories (read-only)<br>

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

{% hint style="info" %}
**Permissions requested:** AquilaX requests **Read** access to code and metadata only. No write access is ever requested.
{% endhint %}

7. Click **Install & Authorize**. You will be redirected back to AquilaX at `https://aquilax.ai/app/github/webhook`
8. A confirmation screen will appear indicating the **GitHub Integration** was successful<br>

   <figure><img src="/files/h9uBnXDJ0BvEWlA639FW" alt="" width="316"><figcaption></figcaption></figure>
9. **Refresh the page** to confirm the integration status. The GitHub row will now show **✓ Connected** along with the number of repositories integrated and the date

<p align="center"><img src="/files/hJzCP1hjsxv5J2Kv9pR0" alt=""><br><br></p>

You can now scan any repository from your connected GitHub account or organization.

***

**Notes**

* If you have already connected your GitHub account, you can click **View Details** in the Integrations section to:
  * Update the connection to refresh the integration and repository list
  * Delete the integration and start over
* Only **Organization Owners** can connect or manage git integrations
* If you selected **Only select repositories** during setup and want to add more later, go to your GitHub account under **Settings → Integrations → GitHub Apps** and update the AquilaX app permissions


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.aquilax.ai/user-manual/connect-aquilax-with-git/github-connection.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
