Source Code Manager settings
Reference for Source Code Manager (SCM) authentication settings used with Harness Git Experience.
The topic describes the settings in My Source Code Manager. It is a reference you can use when you are trying to find the requirements and options for a specific My Source Code Manager setting.
My Source Code Manager is required for Harness Git Experience. Go to Harness Git Experience Overview to learn how Harness Git Experience works.
What you will learn from this topic
How a Source Code Manager identifies the author of each commit in Harness Git Experience.
How to configure GitHub authentication using a personal access token.
How to configure Bitbucket authentication using a username and password or an SSH key.
How to configure GitLab authentication using a password, token, Kerberos, or SSH key.
How to configure Azure DevOps authentication using a password, token, or SSH key.
Source Code Manager overview
In Harness Git Experience, a Harness Project is synced with a Git provider and has multiple Harness Users making commits to multiple branches.
It can be difficult to audit all the Users making commits in the same Project without some way of identifying the users in Harness and your Git provider. Without some way of identifying them, all commits will look like they came from the same person.
A Source Code Manager (SCM) uses your personal Git account information to identify the commits you make. A Source Code Manager is useful for auditing who is making changes to a Project, Pipeline, Connector, etc.
A Source Code Manager is mandatory for Harness Git Experience. If you do not have a SCM when you try to enable Harness Git Experience, Harness warns you and requires you to set one up.
GitHub authentication
Configure your Source Code Manager to authenticate with GitHub using the following method:
Supported methods:
Username and Personal Access Token (PAT): Go to the GitHub documentation on Creating a personal access token to create a PAT.
Scopes: Select all the repo and user options.

Your GitHub Personal Access Token is stored in your Harness secret, which is a private key to which only you have access. This secret cannot be accessed or referenced by any other user.
Bitbucket authentication
Configure your Source Code Manager to authenticate with Bitbucket using one of the following methods:
Supported methods:
Username and Password. This is the Bitbucket username and App password in your Bitbucket account settings.

Bitbucket username and app password settings. SSH Key. This is the private key. The corresponding public key is added to your Bitbucket account settings.

Bitbucket SSH key settings.
See also: Set up an SSH key from Bitbucket.
GitLab authentication
Configure your Source Code Manager to authenticate with GitLab using one of the following methods:
Supported methods:
Username and Password.
Username and Personal Access Token (PAT).
Kerberos.
SSH Key. This is the private key. The corresponding public key is added to your GitLab account settings.

GitLab SSH key settings.
Scopes: select api.

GitLab personal access token scope. See also: Set up your organization from GitLab.
Azure DevOps authentication
Configure your Source Code Manager to authenticate with Azure DevOps using one of the following methods:
Supported methods:
Username and password.
Username and Personal Access Token (PAT).
SSH key.
Scopes: for Personal Access Tokens, Code: Full.

Azure DevOps personal access token scope. See also: View permissions for yourself or others from Azure.
Last updated
Was this helpful?