> For the complete documentation index, see [llms.txt](https://knowledgebase.autorabit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.autorabit.com/product-guides/codescan/getting-started/using-codescan/adding-projects-to-codescan/add-a-project-to-codescan-from-git.md).

# Add a Project to CodeScan from Git

This document guides how to add a git project to your CodeScan cloud account and run the analysis.\
This method can be used to add a project from any git-based SCM; however, if you use a cloud version of GitHub, Bitbucket, or GitLab, we suggest you use the specific integration for your repository.

1. Login to your **CodeScan** account.
2. Once you log into your CodeScan account, click on the (**+**) icon in the top right corner and select **Analyze new project**.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FpT9qJkDJXP2XfdacsZXl%2FAnalyzeProzect%205.9.png?alt=media&amp;token=3e01de90-c150-4132-9678-81b36498addf" alt=""><figcaption></figcaption></figure>

3. It takes you to a different window. Choose the **Organization** for which you'd like to create a project.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FEFsjCpCcA6pMrNhRirUX%2FProjectSetup%207.7.png?alt=media&amp;token=f142068e-1197-4ff2-90eb-d7fa8cddc909" alt="" width="563"><figcaption></figcaption></figure>

4. In the next screen, click on **Add Analysis Project** option.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2Fgyzt8kONq7ItymSu7FBd%2FAnalyzeProzect%205.9.png?alt=media&amp;token=e27efd95-3aa4-42d3-b9fc-8d13a5c8e4b2" alt=""><figcaption></figcaption></figure>

5. You will now see a new popup window; select **Git** from the given options.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FTawrmkdnScKhIXjUotew%2FGit%207.5.png?alt=media&amp;token=8a0d8994-1536-44dc-8b6b-ad7ba9612fec" alt=""><figcaption></figcaption></figure>

6. Enter the necessary information in the fields as mentioned below:

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2Fp7QtiTFe5FKoKMkgNkkw%2FGit%207.6.png?alt=media&amp;token=2ba9f7ce-71c9-45fa-9cc6-1711f633f64c" alt="" width="375"><figcaption></figcaption></figure>

* Fill in the **GIT repository URL**. You can add two types of URL addresses in the field:
  1. An **HTTPS URL** like **`https://github.com/user/repo.git`**
  2. An **SSH URL**, like **`git@github.com:user/repo.git`** or  **`ssh://github.com/user/repo`**
* Enter the Git **username** and the **security token** in their respective fields, followed by the **project branch** name.
* Enter the CodeScan **project security key,** followed by the **project name**.
* Under **Scheduling**, choose whether to run the project automatically by selecting **Daily** or manually by selecting **Manual**.
* If you select **Daily**, another field named **Schedule** has to be selected by choosing the time you want the automatic analysis to be triggered.

{% hint style="info" %}
**Note:** To know where to find the project key, refer to our document on how to do it by clicking [here](https://knowledgebase.autorabit.com/codescan/docs/finding-your-project-key).
{% endhint %}

This triggers the project analysis and the added project under your [CodeScan](https://www.codescan.io/) organization.

This project will now run daily at the scheduled time unless configured otherwise.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://knowledgebase.autorabit.com/product-guides/codescan/getting-started/using-codescan/adding-projects-to-codescan/add-a-project-to-codescan-from-git.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
