Adding a project to CodeScan from GitLab
  • 03 Nov 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Adding a project to CodeScan from GitLab

  • Dark
    Light

This document guides how to add a GitLab project to your CodeScan Cloud account and run the analysis.

  1. Login to your CodeScan account.
  2. Once you login into your CodeScan account, click on the (+) icon in the top right corner and select Analyze new project.login codescan account
  3.  It takes you to a different window. Choose the Organization for which you'd like to create a project. Click on Set Up.Analyze projects
  4. In the next screen, click on Add Analysis Project button. Add Analysis Project
  5. You will now see a new popup window; click on GitLab from the given options.
  6. 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.
  7. This triggers the project analysis and the project being added under your CodeScan organization.
  8. You can view the project analysis report by clicking on Details from your VC repository.VC repository
  9.  When you click the link, it will take you to the CodeScan Project page, where you can view your project's log report.codescan project pageNow 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.

Was this article helpful?