Add a project to CodeScan from GitHub
This document guides how to add a GitHub project to your CodeScan cloud account and run the analysis.
- Login to your CodeScan account.
- On the top right corner, click on the '+' icon 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 Set Up.
- On the next window, click on Add Analysis Project.
- You will now see a new pop-up window; select GitHub from the given option.
- Once you select GitHub, it will redirect to the GitHub login page. Validate your credentials and click on Login.
- On the next screen, fill in the details below:
- Choose the Repository you want to add, followed by the Project Branch name.
- Make sure you select the checkbox under Check Pull Requests.
- The Project Key and the Project Name are auto-assigned. You can edit the fields as per your requirement.
- Click on Add and Run Now.About Project KeyTo know where to find the project key, refer to our documentation by clicking HERE.
- 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 there is a push to the tracked branch or a pull request made/updated against the tracked branch, an analysis will be triggered in CodeScan.