This document is a guide on 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 popup 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 below details:
- 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 along with 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 pull request made/updated against the tracked branch, an analysis will be triggered in CodeScan.