I have a private repository that uses a dynamic CircleCI configuration to build specific modules depending on which application was modified. Once the correct workflow runs, the checkout step is failing with a permissions denied error. I have already generated a Deploy Key for my project in the SSH Keys settings page.
I was expecting that generating the Deploy Key would automagically give the CircleCI job access to my repo.
First question that comes to mind is if the project/repo shows up in your Projects list? If not, you will need to follow it first. If it does, then you will need to go into the Project Settings and choose “Stop Building”
Are you trying to checkout a different git repo or just the same repo as your project?
I am trying to checkout the same repo as my project.
I tried the recommendations from the two threads that you linked. Now I am getting a similar, but different error:
Using SSH Config Dir '/home/circleci/.ssh'
git version 2.38.2
Cloning git repository
Cloning into '.'...
email@example.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What additional information from my side would be useful to debug?