Running into unknown GitHub error when pushing to GitHub

As part of a workflow we have a job that pushes an update to the github repo (which is part of github org account). This used to work and seems to have stopped working a couple of days ago.

----- The error is displayed below ------
Pushing changes to ‘origin’
ERROR: You must verify your email address.
See https://github.com/settings/emails.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ERROR: Hit an unknown Git error. Exit code: 128. Stderr: see output above in the log. Stdout:

Exited with code 1

After ssh to the box suggested (ssh -p host), have checked:
user.name, user.email and push.default that the settings are good and that the user.email value matches the email associated with user.name in github and the email is verified.

A manual attempt to push from the box seems to work. I have reached out to github support and waiting to hear back.

Is there anything I could check in circleCI that could help?

Thanks

Check that the https://circleci.com/gh/:org/:repo/edit#ssh page contains the SSH key you think it does. Otherwise, it does sound like GitHub doesn’t like the key there. You may want to double-check that the key is still on GitHub.

Thanks @drazisil

turns out that ssh -T revealed a different email address that needed to be verified. Once that was verified, it worked.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.