Github Permission denied


Spring-Boot app

Basic config.yml

GitHub Webhook

Build previously succeeded

I have a project that used to build successfully and now it’s failing on:

Spin up environment: pass

Preparing environment variables: pass

Checkout code: FAIL

Using SSH Config Dir '/home/circleci/.ssh'

git version 2.30.2

Cloning git repository

Cloning into '.'...

Warning: Permanently added the RSA host key for IP address '' to the list of known hosts. Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

exit status 128

My attempts to fix:

  1. In GitHub remove and re-add the circle ci webhook

  2. Rebuild the project

  3. Ensured project GitGub visibility is public

Is there anything else I can try.

Thanks for your help.

Hi! The next thing I would try is removing and re-adding your deploy key. Let me know if that doesn’t work for you and we will keep investigating.