You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add --strict-blocking flag documentation to README
Added comprehensive documentation for the new --strict-blocking feature:
- Added flag to Advanced Configuration parameters table
- Created dedicated "Strict Blocking Mode" section with:
- Behavior comparison (standard vs strict)
- Usage examples for different CI/CD platforms
- Output examples showing NEW vs EXISTING violations
- Common use cases and implementation strategies
- Important notes about limitations and flag priority
- Flag combination examples
- Migration strategy guidance
- Links to GitLab CI example files
The documentation clearly explains:
- Zero-tolerance security policy enforcement
- Diff mode requirement
- Error-level filtering (not warnings)
- --disable-blocking precedence
- First scan behavior
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
| --strict-blocking | False | False | Fail on ANY security policy violations (blocking severity), not just new ones. Only works in diff mode. See [Strict Blocking Mode](#strict-blocking-mode) for details. |
196
197
| --enable-diff | False | False | Enable diff mode even when using --integration api (forces diff mode without SCM integration) |
197
198
| --scm | False | api | Source control management type |
198
199
| --timeout | False | | Timeout in seconds for API requests |
- `alert_types` (array, optional): Only send specific alert types
329
330
- `reachability_alerts_only` (boolean, default: false): Only send reachable vulnerabilities when using `--reach`
330
331
332
+
## Strict Blocking Mode
333
+
334
+
The `--strict-blocking` flag enforces a zero-tolerance security policy by failing builds when **ANY** security violations with blocking severity exist, not just new ones introduced in the current changes.
335
+
336
+
### Standard vs Strict Blocking Behavior
337
+
338
+
**Standard Behavior (Default)**:
339
+
- ✅ Passes if no NEW violations are introduced
340
+
- ❌ Fails only on NEW violations from your changes
0 commit comments