A secret-scanning gate that blocks the commit, with a sane allow-list
You add Gitleaks as a secret scanning gate that runs before a push and again in CI, so a commit carrying a credential is blocked. You tune an allow-list for test fixtures without opening a hole for real keys. Then you retry the leak from earlier in this module and confirm the commit no longer lands.