Hi guys, I have a question regarding cloning another private repository. Let’s say I have two repositories: my-app-backend and my-app-frontend. When going through the workflow with my-app-backend, during one step, I want to clone the frontend repository to run some tests. I’ve set up SSH keys already, namely:
- I generated new public and private SSH keys.
- The repository is on Github so I visited the frontend repo, Settings -> Deploy keys and according to hints I added the public SSH key which was required.
- On CircleCI’s end, in the backend app, I visited Settings -> SSH Permissions and I added the private key which was required.
- Both fingerprints (on Github and CircleCI) are the same.
The problem occurs while cloning the frontend repository. I’m getting the following error:
Cloning into '/home/circleci/my-app-frontend'... ERROR: Repository not found. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Exited with code 128
I’m pretty sure that with CircleCI 1.0 it would work, but with 2.0 I have no idea. Am I doing anything wrong or should I consider adding a machine user which, in my opinion, would be an overkill since I need to do it only in one repository, not everywhere?