Security gate in CI: fail on new findings, not old debt
Almost every team that adds a security gate in CI does it the same way. Run the scanner on every pull request, fail the build on any High or Critical finding, and fix what it reports. The first run on a real codebase reports hundreds of findings that were there long before anyone opened this pull request. Every build is red. Within a few weeks someone adds || true and the gate is gone.
The gate was not wrong to exist. It was asking the wrong question. "Does this repository have findings?" is almost always yes. The question a pull request can answer is narrower: "Did this change add one?"
