Git Connector Settings Reference
This topic provides settings and permissions for the platform-agnostic Git Connector. For Connectors to popular Git platforms like GitHub, see Code Repo Connectors.
In this topic:
- URL Type
- Connection Type
- Git Account URL
- SSH Key
- Setup Delegates
- Before Harness syncs with your Git repo, it'll confirm that all Harness' settings are in a valid state. If a connection isn't working, Harness won't sync with your Git repo.
The unique name for this Connector.
A description of this Connector.
See Tags Reference.
You can select Account or Repository.
You can add a connection to your entire Git account or just a repo in the account. Selecting a Git account enables you to use one Connector for all of your subordinate repositories.
Later when you test this connection, you will use a repo in the account.
In either case, when you use the Connector later in Harness, you will specify which repo to use.
You can select HTTPS or SSH for the connection.
You will need to provide the protocol-relevant URL in Git Account URL.
If you use Two-Factor Authentication for your Git repo, you connect over HTTPS or SSH. HTTS is required a personal access token.
ssh-keygen -t rsa -m PEMThe
-m PEMensure the algorithm and that the key is PEM. Next, follow the prompts to create the PEM key. For more information, see the ssh-keygen man page.
Git Account URL
The URL for your Git repo. Ensure that it matches the Connection Type option you selected.
If you selected Git Repository in URL Type, enter the full URL for the repo.
If you selected Git Account in URL Type, enter the URL without the repo name. When you use this Connector in a Harness setting you will be prompted to provide a repo name.
The username for the account.
A Harness Encrypted Text secret for the credentials of your Git user account.
If you selected SSH as the connection protocol, you must add the Username as
git and an SSH Key for use with the connection as a Harness Encrypted Text secret.
You can select Connect via any available delegate or Connect only via delegates which has all of the following tags.
You need to enter Selectors to connect via specific delegates. For more information see Select Delegates with Tags.