The postmortem shows this is the third time this year a cloud credential leaked through a Git commit
Likely causes → The fixes so far targeted people ("be more careful") rather than the system. Long-lived credentials still exist, scanning is opt-in, and secrets are easy to copy into files.
Diagnose → Look at the three incidents together: what kind of credential, why it existed, how it was committed, how it was detected, and how long it was exposed.
gitleaks detect --source . --log-opts="--all" --report-format json --report-path all-history.json
Fix → Remove the class of credential, not just the instance. Replace static keys with OIDC and workload identity, enable org-wide push protection and server-side secret scanning, add pre-commit hooks through a managed config, and route leak alerts to an owned on-call rotation with auto-revocation where providers support it.
Prevent → Track metrics (number of long-lived credentials, time to revoke) and make each postmortem action item a guardrail with an owner and a due date, not a reminder.