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
More on Hooks, submodules, LFS and signing
What are Git hooks and where do they live?BeginnerHow do you share hooks with a team, given `.git/hooks` is not committed?IntermediateWhat does the `commit-msg` hook receive and what is it good for?IntermediateWhat do `pre-receive` and `update` hooks do and how do they differ?AdvancedWhat is a Git submodule?BeginnerWhy do submodules confuse people and what are the common pitfalls?Intermediate