Skip to content

fix(security): fail-closed on ZAP warnings and zizmor skip - #842

Merged
scttbnsn merged 1 commit into
dev/v1.7from
fix/v1.7-audit-security
Aug 21, 2026
Merged

scttbnsn merged 1 commit into
dev/v1.7from
fix/v1.7-audit-security

Conversation

@scttbnsn

Copy link
Copy Markdown
Contributor

Two house-audit findings, both the same shape: a gate that silently passes when its tool doesn't run.

  • Removed cmd_options: '-I' from all three ZAP jobs (ci-verify's dast-zap-baseline, security-dast-web's full scan and demo baseline). -I told ZAP to ignore warnings entirely, so the scans could never fail on findings. .zap/rules.tsv already exists for targeted suppressions (one IGNORE entry today), which is the right mechanism — suppress named findings, not the whole signal.
  • Lefthook's pre-push zizmor step now fails with an install hint when the binary is missing instead of silently skipping. Same shape sockguard already uses.

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.

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.
@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

Deployment failed for project drydock-website with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/codeswhat?upgradeToPro=build-rate-limit

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ZAP -I removal checked against all three jobs; rules.tsv stays as the suppression path. Zizmor step matches sockguard's fail-loud shape.

@ALARGECOMPANY ALARGECOMPANY left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fail-closed is right for both. 208 workflow tests green.

@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@scttbnsn, you've reached your PR review limit, so we couldn't start this review.

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 @coderabbitai review or push new commits to the PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 23749b88-e227-4a2f-9d28-e6adf225cc08

📥 Commits

Reviewing files that changed from the base of the PR and between 169c35c and c1942fa.

📒 Files selected for processing (3)
  • .github/workflows/ci-verify.yml
  • .github/workflows/security-dast-web.yml
  • lefthook.yml

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@scttbnsn
scttbnsn enabled auto-merge (squash) August 21, 2026 14:55
@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttbnsn
scttbnsn merged commit e6d0188 into dev/v1.7 Aug 21, 2026
29 of 32 checks passed
@scttbnsn
scttbnsn deleted the fix/v1.7-audit-security branch August 21, 2026 15:25
scttbnsn added a commit that referenced this pull request Aug 23, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants