Skip to main content

Cloning a Git repository


Clone a Git repository.


  1. Add the Activate SSH key (RSA private key) Step. This allows the Git client on the build VM to access private repositories.

  2. Add the Git Clone Repository Step.

Check out other options in the Step documentation or in the Workflow Editor.


- activate-ssh-key@4:
    run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}