Interview Prep/Git & GitHub/Hooks, submodules, LFS and signing

How does GitHub verify an SSH or GPG signature, and what is vigilant mode?

IntermediateConceptHooks, submodules, LFS and signing
Answer

GitHub checks the signature against signing keys uploaded to the committer's account and the email on the commit. Vigilant mode marks all unsigned commits attributed to you as Unverified, flagging impersonation. Locally verify with git log --show-signature and, for SSH, an allowed_signers file.

git config gpg.ssh.allowedSignersFile ~/.config/git/allowed_signers
git log --show-signature -1
All Git & GitHub questions Roadmap: Git & GitHub

More on Hooks, submodules, LFS and signing