Skip to main content

Connecting private Git repositories

Login and Password

To enable connection to the private repository in a single scan or project:

  1. Open scan settings and go to Private repository settings.

  2. Add private repository access credentials.

  3. Enable Use credentials for rescanning to grant access to these credentials to all of the subsequent scans in this project.

Saving credentials for private repository connection in the user's account:

  1. Go to Account > Access Data > Repositories > Login and Password

  2. Click Add Credentials.

  3. Fill in the form.

  4. Grant access to these credentials to other users (optional).

  5. Open scan settings and go to Private repository settings.

  6. Select the credentials you just added.

Access token

To enable connection to the private repository in a single scan or project:

  1. Open scan settings and go to Private repository settings.

  2. Add private repository access token.

  3. Enable Use credentials for rescanning to grant access to these credentials to all of the subsequent scans in this project.

Saving credentials for private repository connection in the user's account:

  1. Go to Account > Access Data > Repositories > Access Token

  2. Click Add Token.

  3. Put your token into the Key field.

  4. Grant access to these credentials to other users (optional).

  5. Open scan settings and go to Private repository settings.

  6. Select the token you just added.

SSH key

To enable connection to the private repository in a single scan or project:

  1. Open scan settings and go to Private repository settings.

  2. Add private repository SSH key as a file or by typing down.

  3. Enable Use credentials for rescanning to grant access to these credentials to all of the subsequent scans in this project.

Saving credentials for private repository connection in the user's account:

  1. Go to Account > Access Data > Repositories > SSH key

  2. Click Add Key.

  3. Put your private SSH key into the Key field, or upload it as file.

  4. Make changes to the default SSH client configuration if needed.

  5. Grant access to these credentials to other users (optional).

  6. Open scan settings and go to Private repository settings.

  7. Select the SSH key you just added.

Enabling upload from a repository

Git client configuration can be managed via UI (Admin Panel > System > Git Configuration).

We highly recommend using a technical account, since the provided data will be stored on a server in an unencrypted form. Enabling download by login and password is unavailable in case of a BitBucket private repository. Please use an authorization token or SSH key instead.

Configuration example:

[user]
email = your@email.com
user = your_username
[credential]
helper = cache --timeout 30000