Interview Prep/Git & GitHub/Security: secrets, signing, access and supply chain

What is your policy on signed commits and how do you enforce it?

IntermediateProductionSecurity: secrets, signing, access and supply chain
Answer

Require signed commits on protected branches through the ruleset, standardise on SSH signing (simple to distribute and works with hardware keys) or gitsign for keyless, and document how to configure it. With squash merges via the web UI GitHub signs the merge commit itself, so the rule stays workable. Signing proves the commit came from a key bound to the account; it does not prove the code is safe.

All Git & GitHub questions Roadmap: Git & GitHub

More on Security: secrets, signing, access and supply chain