~/til / commit 4f672c5

GitHub only verifies a signed commit if the commit's email is on the key

My commits were signed and git log --show-signature said “Good signature”, but GitHub’s ruleset rejected the push anyway. The key carried my personal email address. The commits carried my GitHub noreply address. GitHub checks that the commit email is one of the key’s identities and one it has verified for your account.

The fix was to add the noreply address to the key and upload it again:

gpg --quick-add-uid <fingerprint> "name <[email protected]>"
gpg --armor --export <fingerprint>

The fingerprint doesn’t change, so old signatures stay valid everywhere.