Add Source Code Managers
A Harness Source Code Manager (SCM) contains your personal account for a Git provider such as GitHub or AWS CodeCommit. You can add one SCM to your account for each provider.
When you have Harness Git Experience enabled for a Project, Harness uses your SCM account information to identify the commits you make to and from Harness. An SCM is useful for auditing who is making changes to a Project and its Pipeline, Connectors, etc.
A Harness SCM is mandatory for Harness Git Experience. If you don’t have a SCM when you try to enable Harness Git Experience, Harness will warn you and require you set one up.
This topic walks you through setting up a SCM. If you are simply looking for descriptions of a SCM settings, see Source Code Manager Settings.
In this topic:
Before You Begin
- If you are new to Harness Git Experience, read Harness Git Experience Overview and try the Harness Git Experience Quickstart.
- You can only add one SCM per Git provider. For example, you cannot add two GitHub SCMs.
- Git Sync in Harness is limited to the following Git providers:
Git Management using BitBucket is in Beta and is behind the Feature Flag
GIT_SYNC_WITH_BITBUCKET. Contact Harness Support to enable it. Harness only supports BitBucket cloud.
Step 1: Open Your Profile
In Harness, click your account profile at the bottom of the navigation.
In My Source Code Managers, click Add Source Code Manager.
Step 2: Add the SCM
In Add a Source Code Manager, enter a name for the SCM.
Select the SCM type, such as GitHub.
Enter the authentication credentials.
We'll use GitHub in this example, but you can find the settings for all of the SCMs in Source Code Manager Settings.
Here's a GitHub example:
Click Add. The new SCM is listed under My Source Code Managers.
Now that you have an SCM you can enable Harness Git Experience.