> For the complete documentation index, see [llms.txt](https://docs.cyberscope.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cyberscope.io/cyberscan-ai/github-and-gitlab-integration.md).

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