Build error (github ssh key changed)

Failed to build container from github reposetory (was working many times before)
rebuild, readd git reposetory, remove key and add manualy did not helped.

Any solutions?

2023-03-24T12:39:45Z Building in Docker Cloud's infrastructure...
2023-03-24T12:39:45Z Cloning into '.'...
2023-03-24T12:39:46Z @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2023-03-24T12:39:46Z @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
2023-03-24T12:39:46Z @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2023-03-24T12:39:46Z The RSA host key for github.com has changed,
2023-03-24T12:39:46Z and the key for the corresponding IP address 140.82.113.4
2023-03-24T12:39:46Z is unknown. This could either mean that
2023-03-24T12:39:46Z DNS SPOOFING is happening or the IP address for the host
2023-03-24T12:39:46Z and its host key have changed at the same time.
2023-03-24T12:39:46Z @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2023-03-24T12:39:46Z @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
2023-03-24T12:39:46Z @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2023-03-24T12:39:46Z IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
2023-03-24T12:39:46Z Someone could be eavesdropping on you right now (man-in-the-middle attack)!
2023-03-24T12:39:46Z It is also possible that a host key has just been changed.
2023-03-24T12:39:46Z The fingerprint for the RSA key sent by the remote host is
2023-03-24T12:39:46Z SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s.
2023-03-24T12:39:46Z Please contact your system administrator.
2023-03-24T12:39:46Z Add correct host key in /root/.ssh/known_hosts to get rid of this message.
2023-03-24T12:39:46Z Offending RSA key in /root/.ssh/known_hosts:4
2023-03-24T12:39:46Z remove with:
2023-03-24T12:39:46Z ssh-keygen -f "/root/.ssh/known_hosts" -R "github.com"
2023-03-24T12:39:46Z RSA host key for github.com has changed and you have requested strict checking.
2023-03-24T12:39:46Z Host key verification failed.
2023-03-24T12:39:46Z fatal: Could not read from remote repository.
1 Like

GitHub updated their keys yesterday, we are also experiencing this issue. Disabling cache did not resolve the problem.

The key appears to have been corrected for us.