Skip to main content

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:

  1. Select Projects in the header.

  2. Click the Add repository button in the upper-right of the window.

  3. 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:

  1. In Github, go to Settings > Applications > Integrations and locate the Contrast Security GitHub App.

  2. Under Repository access select the repositories you want to connect to Contrast.

  3. 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:

  1. Select Projects in the header and locate the row in the grid for the project you want to disconnect.

  2. 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.