Using Git with workflows
In your Compliance center workflows instance, you can connect to a remote Git repository, then push your workflows to the repository or pull them from the repository into your instance.
Before you begin
You must have a GitHub account and an established repository. Decide which workflows you want to push into your repository and which to pull from it.
Connecting to a Git repository and branch
- If you do not have a configured authentication to the repository, create one.
- If you are connected to another application, click the application switcher and switch to Compliance center workflows.
- In the Compliance center workflows sidebar, click Authentications.
- Give the authentication a unique name and, optionally, a description.
- In the Service drop-down, select Git.
- Provide the Git service credentials.
- URL
- The repository path.
- You can enter the path now or click Overridable if you prefer to enter it when you set up the Git configuration.
- If you enter a value now and you do not click Overridable, then the value cannot be changed after you save the authentication.
- To enter it now, specify the full path ending in
your-project.git.
- Branch
- The repository branch that you want to use.
- You can manually enter the branch name now or click Overridable if you prefer to select it when you set up the Git configuration.
- If you enter a branch name now and you do not click Overridable, then the branch cannot be changed after you save the authentication.
- If you enter a branch name now, make sure you enter the name of a branch that exists in the repository.
- Username
- The username associated with your Git provider.
- Password
- The password associated with your Git username. If you are using GitHub Cloud or Enterprise, the password must be a personal access token for the user.
- The email address associated with your Git username.
- RSA private key
- The private key that is used for SSH key authentication, if you are using SSH instead of password or token authentication.
- Click Save.
- In the Compliance center workflows sidebar, click Workflows.
- Click the overflow (three-dot) menu and click Git Config.
- In the dialog, in the Auth Key field, select the authentication that you created in step 1.
- Optional: If you made the URL overridable when you created the authentication key, specify the URL.
In the URL field, enter the full path ending in
your-project.git. - Optional: If you made the branch overridable when you created the authentication key, select the repository branch that you want to use for pushing and pulling your workflows.
- Click Save.