Why do some teams require signed git commits, and what does it prove?
BeginnerScenarioSupply Chain Security
Answer
Situation read → Git author names are free text. Anyone can set user.name to your CTO.
What I'd do →
- Sign with SSH, GPG or Sigstore gitsign:
git config commit.gpgsign trueandgit config gpg.format ssh. - Enable "Require signed commits" in branch rules.
- Register keys on the platform so commits show "Verified".
- Combine with MFA and short-lived credentials.
Why → It proves the commit came from someone holding the key, not just using an email.
Interview tip → It proves identity, not that the code is safe; reviews still matter.
More on Supply Chain Security
What is an SBOM, and at which point in the pipeline do you generate it?BeginnerA customer asks for an SBOM for your product. What do you give them?BeginnerHow do you sign container images in GitHub Actions without managing private keys?IntermediateYou signed images in CI. How do you make sure the cluster only runs signed images?IntermediateLeadership wants "SLSA compliance". What do you propose?IntermediateWhat is typosquatting and how do you protect developers from it?Beginner