You can configure which SSH key NixCI is to use for cloning Git repositories.
You can configure which SSH key NixCI is to use for cloning Git repositories.
You can configure a
git-ssh-key
as follows:
{ nix-ci = { git-ssh-key = { public-key = "my pubkey here"; secret = "GIT_SSH_KEY"; }; }; }
You will also need to tell NixCI about the private key of this ssh key pair by setting the variable with the name you have chosen before.
In this example that would be
GIT_SSH_KEY
.
nix-ci: # optional git-ssh-key: # optional # SSH Key to use for git-clone-ing # By default no SSH key is used so Nix will fail to clone private dependencies. # SshKeyConfiguration secret: # required # name of the secret on NixCI to use as the private key <string> public-key: # required # public key of the ssh key <string>