Interview Prep/Git & GitHub/GitHub, Actions and Pull Request Issues

A ruleset requires signed commits; your commits show "Unverified" on GitHub and the push is rejected with `Commits must have verified signatures.`

IntermediateTroubleshootingGitHub, Actions and Pull Request Issues
Answer

Likely causes → The commits are unsigned, signed with a key not uploaded to GitHub as a signing key, or signed with an email that is not verified on your GitHub account.

Diagnose →

git log --show-signature -3
git config --get user.email
git config --get gpg.format; git config --get user.signingkey

Fix → Configure signing (SSH signing is simplest), upload the public key under Settings → SSH and GPG keys as "Signing key", then re-sign your commits:

git config --global gpg.format ssh
git config --global user.signingkey ~/.ssh/id_ed25519.pub
git config --global commit.gpgsign true
git rebase --exec 'git commit --amend --no-edit -S' origin/main
git push --force-with-lease

Prevent → Enable commit.gpgsign globally and make sure user.email matches a verified address.

All Git & GitHub questions Roadmap: Git & GitHub

More on GitHub, Actions and Pull Request Issues