How do you design Git workflows for regulated environments (SOX, PCI, ISO 27001)?
AdvancedProductionBranching and workflow design
Answer
Enforce separation of duties: no direct pushes, at least one independent approver who is not the author, required status checks, signed commits where policy demands it, immutable audit logs of merges and deployments, and approvals recorded in the PR. Use environments with required reviewers for production deploys and stream the org audit log to a SIEM. The evidence is the PR, the check run and the deployment record, so make each of them complete and undeletable.
More on Branching and workflow design
How would you choose a branching strategy for a team of 40 engineers shipping a SaaS product several times a day?IntermediateWhen is GitFlow still the right choice in 2026?IntermediateHow do you support multiple released versions (1.x, 2.x, 3.x) without chaos?AdvancedHow do feature flags change your merge and release process?IntermediateWhat branch naming and commit conventions do you enforce and how?BeginnerSquash, merge commit or rebase: what do you set as the allowed method on production repos and why?Intermediate