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.
More on Security: secrets, signing, access and supply chain
What are the first things you do when a secret is committed to a repo?BeginnerHow do you prevent secrets from entering the repo in the first place?IntermediateWalk through purging a leaked secret from a 5 GB repo with 200 contributors.AdvancedWhy use OIDC federation for cloud credentials from GitHub Actions instead of stored keys?IntermediateWhat do signed commits not protect against, and what supply chain controls complement them?AdvancedWhy pin third-party GitHub Actions to a commit SHA?Intermediate