Adding a project to CodeScan from GitLab
This document guides how to add a GitLab project to your CodeScan Cloud account and run the analysis.
- Login to your CodeScan account.
- Once you login into your CodeScan account, click on the (+) icon in the top right corner and select Analyze new project.
- It takes you to a different window. Choose the Organization for which you'd like to create a project. Click on Set Up.
- In the next screen, click on Add Analysis Project button.
- You will now see a new popup window; click on GitLab from the given options.
- Now another popup window appears with the fields: Choose a repository, Project Branch, Check Pull Requests, Key, and Name.
- Choose the repository you want to add, followed by the project branch name.
- Make sure you select the checkbox under Check Pull Requests. This will add webhooks.
- Next, enter the Project Key followed by the Project Name.Note:To know where to find the project key, refer to our document on how to do it by clicking HERE.
- Once you fill out all the details in the popup window, click on Add and Run Now.
- This triggers the project analysis and the project being added under your CodeScan organization.
- You can view the project analysis report by clicking on Details from your VC repository.
- When you click the link, it will take you to the CodeScan Project page, where you can view your project's log report.Now that the webhooks have been created, every time a push or pull request is made to the tracked branch, an analysis will be triggered in CodeScan.