Repository navigation
fix(security): fail-closed on ZAP warnings and zizmor skip - #842
Conversation
ZAP jobs (ci-verify's dast-zap-baseline, security-dast-web's dast-web and dast-web-demo) all passed cmd_options: '-I' to the zaproxy baseline/full-scan actions, which tells ZAP not to fail on WARN-level findings — advisory instead of fail-closed. Drop it from all three so WARN findings block the gate same as FAIL; .zap/rules.tsv already exists for any accepted-suppression entries. lefthook.yml's pre-push zizmor step used a `skip` clause that silently no-ops the whole gate when the zizmor binary isn't on PATH. Replace it with the fail-loud shape sockguard already uses: the step always runs and exits 1 with an install hint if zizmor is missing, so a missing tool can't masquerade as a clean workflow-security scan.
|
Deployment failed for project drydock-website with the following error: |
biggest-littlest
left a comment
There was a problem hiding this comment.
ZAP -I removal checked against all three jobs; rules.tsv stays as the suppression path. Zizmor step matches sockguard's fail-loud shape.
ALARGECOMPANY
left a comment
There was a problem hiding this comment.
Fail-closed is right for both. 208 workflow tests green.
|
Warning Review limit reached
Next review available in: 16 minutes Limit details: You’ve used all 2 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?Wait for the limit to reset, then comment An organization admin can change what happens after included review limits in Billing. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
The first main push after #842's fail-closed change surfaced the two warnings -I had been swallowing, failing CI Verify on main and aborting the v1.7.0-rc.3 release cut: - 10055 CSP style-src unsafe-inline: accepted risk, documented in app/api/index.ts — iconify-icon and Vue Transition set element.style programmatically. Gate-suppressed in .zap/rules.tsv but kept visible in code scanning. - 10109 Modern Web Application: informational SPA-detection notice, suppressed in rules.tsv and dropped from the SARIF surface alongside 10049.
Two house-audit findings, both the same shape: a gate that silently passes when its tool doesn't run.
cmd_options: '-I'from all three ZAP jobs (ci-verify's dast-zap-baseline, security-dast-web's full scan and demo baseline).-Itold ZAP to ignore warnings entirely, so the scans could never fail on findings..zap/rules.tsvalready exists for targeted suppressions (one IGNORE entry today), which is the right mechanism — suppress named findings, not the whole signal.Workflow tests: 208/208 pass. Ran the new zizmor command locally: no findings, exit 0. If ZAP surfaces real warnings on this PR's DAST runs, they're triaged as findings, not re-suppressed wholesale.