# Github Permission denied

**URL:** <https://discuss.circleci.com/t/github-permission-denied/41679>\
**Category:** Build Environment\
**Created:** [October 27, 2021, 4:12pm UTC](https://discuss.circleci.com/t/github-permission-denied/41679 "2021-10-27T16:12:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ithar](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ithar/32/28457_2.png) [@Ithar](https://discuss.circleci.com/u/Ithar)\
**Post date:** [October 27, 2021, 4:12pm UTC](https://discuss.circleci.com/t/github-permission-denied/41679/1 "2021-10-27T16:12:23Z")

</div>

Set-up:

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**

```auto
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 '140.82.113.3' to the list of known hosts.

git@github.com: 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 [https://circleci.com/hooks/github](https://circleci.com/hooks/github)

2. Rebuild the project

3. Ensured project GitGub visibility is public

Is there anything else I can try.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![thekatertot](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/thekatertot/32/25169_2.png) [@thekatertot](https://discuss.circleci.com/u/thekatertot)\
**Post date:** [November 1, 2021, 11:41pm UTC](https://discuss.circleci.com/t/github-permission-denied/41679/2 "2021-11-01T23:41:50Z")

</div>

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.
