Host Key Verification Failed error in deployment

PLEASE help us help you by writing a good post!

GitHub: GitHub - rebeccapeltz/transformation-concentration: The game of concentration where you match image to effects
I made a fix and pushed to GitHub. Then I tried to run the deploy and it failed during intialization with a git error. See log below.

7:06:15 PM: Failed during stage 'preparing repo': For more information, visit https://docs.netlify.com/configure-builds/troubleshooting-tips/#build-fails-with-error-128: Host key verification failed.

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
: exit status 128
7:06:15 PM: build-image version: 006dca901dab83234b4881f914ac1a189ff41daa (focal)
7:06:15 PM: buildbot version: e8a1f877a96ee9d2b754bae26acb6bb322cba939
7:06:15 PM: Fetching cached dependencies
7:06:15 PM: Failed to fetch cache, continuing with build
7:06:15 PM: Starting to prepare the repo for build
**7:06:15 PM: User git error while checking for ref refs/heads/main**
7:06:15 PM: Failing build: Failed to prepare repo

I tried the bot and it mentioned a Host Key Verification error and to check my netlify.toml, but I wasn’t using one. I checked a few other posts with the Host Key Verification error, but my situation didn’t match.

The link provided at 7:06:15 didn’t mention the Host Key Verification error.

I appreciate any help with this.
Thanks,
Becky

I just tried refetching from github and it said it published it, but it’s still showing the site without the updates. There is an error in one of the images.

Just checked and it was a caching error. Seems like it just need to be redeployed from scratch and uncached.

You can close this.