Add or disconnect GitHub repositories
Add repositories to Contrast or disconnect repositories from Contrast.
Note
An Organization Editor role is required at minimum to be able to add repositories.
Add a repository
You can add additional repositories in Contrast with the Add repository button under the Projects view in Contrast or through GitHub.
To add a repository through Contrast:
Select Projects in the header.
Click the Add repository button in the upper-right of the window.
Log in to your GitHub account a select the repository you would like to connect to Contrast.
Once added, Contrast performs a scan of the repository and provides results in the Projects list.
To add a repository through GitHub:
In Github, go to Settings > Applications > Integrations and locate the Contrast Security GitHub App.
Under Repository access select the repositories you want to connect to Contrast.
Click Save.
Once added, Contrast performs a scan of the repository and provides results in the Projects list.
Disconnect repositories
To disconnect repositories from the Projects list in Contrast:
Select Projects in the header and locate the row in the grid for the project you want to disconnect.
Click the Delete icon under the actions column.
This action disconnects the repository and all associated projects in it. Note that this does not remove the repository from the Contrast Security GitHub App installation. If you also wish to remove Contrast’s permissions to this repository, you will need to remove access through the GitHub App installation settings after disconnecting the repository here to ensure proper cleanup.
Remove access to your repositories and uninstall the Contrast Security GitHub App through GitHub. In Github, go to Settings > Applications > Integrations and locate the Contrast Security App. Select Uninstall.