# Github & Gitlab Integration

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

When you click on **Connect Projects**, select the **Connect** button. A popup will appear, allowing you to add links to your public repositories. For **private** repositories, only GitHub integration is supported.<br>

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

\
When you provide a **GitHub & GitLab** repository link, the system automatically verifies whether the repository is public or private.

<figure><img src="/files/9Ut8l7Jgo8hzVlIFPSxB" alt=""><figcaption></figcaption></figure>

In the next step, you can select either a contract file or a ZIP file. If a ZIP file is uploaded, the system checks whether it contains a .sol file. If no .sol file is found, only the relevant .sol files should be uploaded, and other file types will be ignored.

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

For Github private repositories, the system automatically detects their status and displays a Connect button. When the user clicks this button, they are redirected to the GitHub page for authentication.

On the GitHub page, you can choose which repositories to grant access to the authorized application. All required permissions are displayed in the popup, allowing you to review and select the repositories you want to connect

You can view the connected private GitHub repositories in the popup displayed below the CyberScan AI page, under the “Connect Your Projects” section.


---

# 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.cyberscope.io/cyberscan-ai/github-and-gitlab-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.
