06

A Pipeline That Refuses Bad Code

A pull-request gate on OWASP Juice Shop that blocks the merge when a change adds a SAST, secret, dependency or DAST finding.

A Pipeline That Refuses Bad Code is a DevSecOps project by Kolade Eniola. Shipped 2026-11-14 with public source.

shippedgithub-actions · semgrep · gitleaks · trivy · zapRepository

What it proves

Of nine seeded vulnerable pull requests the gate blocked seven on the first pass and all nine after one local Semgrep rule; three clean controls passed.

Done when

One pull request blocked by each of SAST, SCA, secret scanning, and DAST in turn.

Evidence

Juice Shop is vulnerable by design, and a first full scan found 311 findings. A gate that failed on any finding would fail every pull request and be switched off within a week. This one fails only on findings a pull request adds. It reads its rules, ignore lists and suppressions from the base commit, so a pull request cannot silence itself, and a pull request that adds an inline suppression fails.

Each scanner blocked its own seed: Semgrep a SQL injection, Gitleaks a private key, Trivy a vulnerable package and a container running as root, ZAP a removed frame header. The miss is the part worth recording. A plain command injection passed, because the registry rule packs have no rule that fires on it; a local rule with its own tests now does.