Interview Prep/DevSecOps/Supply Chain Security

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 →

  1. Sign with SSH, GPG or Sigstore gitsign: git config commit.gpgsign true and git config gpg.format ssh.
  2. Enable "Require signed commits" in branch rules.
  3. Register keys on the platform so commits show "Verified".
  4. 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.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply Chain Security