Connecting private Git repositories
Login and Password
To enable connection to the private repository in a single scan or project:
-
Open scan settings and go to Private repository settings.
-
Add private repository access credentials.
-
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:
-
Go to Account > Access Data > Repositories > Login and Password
-
Click Add Credentials.
-
Fill in the form.
-
Grant access to these credentials to other users (optional).
-
Open scan settings and go to Private repository settings.
-
Select the credentials you just added.
Access token
To enable connection to the private repository in a single scan or project:
-
Open scan settings and go to Private repository settings.
-
Add private repository access token.
-
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:
-
Go to Account > Access Data > Repositories > Access Token
-
Click Add Token.
-
Put your token into the Key field.
-
Grant access to these credentials to other users (optional).
-
Open scan settings and go to Private repository settings.
-
Select the token you just added.
SSH key
To enable connection to the private repository in a single scan or project:
-
Open scan settings and go to Private repository settings.
-
Add private repository SSH key as a file or by typing down.
-
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:
-
Go to Account > Access Data > Repositories > SSH key
-
Click Add Key.
-
Put your private SSH key into the Key field, or upload it as file.
-
Make changes to the default SSH client configuration if needed.
-
Grant access to these credentials to other users (optional).
-
Open scan settings and go to Private repository settings.
-
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