Shippable / support

Shippable SaaS customers can report issues and feature requests in this repository
101 stars 28 forks source link

right key for cloning another private repo #5046

Open magwas opened 4 years ago

magwas commented 4 years ago

Description of your issue:

As part of the build, I am cloning a different private repo (and a public one) through ssh.

I can pull the public one, so git apparently uses an ssh key which can reach public repos.

For the private one i get "ERROR: Repository not found." see https://app.shippable.com/github/kode-konveyor/taskmarket-frontend/runs/15/1/console

I added the ssh key in the "kodekonveyor" integration as a deployment key to the private repo, and crated a ~/.ssh/config:

Host github.com
    IdentityFile /tmp/ssh/kodekonveyor

But id didn;t help.

a-murphy commented 4 years ago

Are you sure that the key you added has read access to the repository? It should have been added either as a deploy key for the repository or to an account that has access on GitHub. The error would make sense if the key was not on GitHub for some reason or if the wrong key was used to attempt to clone. Increasing verbosity of the clone command should show which key it tried to use.

Alternatively, you could try using the subscription SSH Key or specifying an SSH key for git clone as documented here.