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
Copy file name to clipboardExpand all lines: README.md
+32-6Lines changed: 32 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,14 +79,19 @@ socketcli \
79
79
--disable-blocking
80
80
```
81
81
82
-
## Scope and behavior matrix
82
+
## Choose your mode
83
83
84
-
|Goal | Key flags|Notes|
84
+
|Use case | Recommended mode|Key flags|
85
85
|:--|:--|:--|
86
-
| Match dashboard-style reachable view |`--sarif-scope full --sarif-grouping alert --sarif-reachability reachable`| Best parity path for customer evaluations |
87
-
| Capture all reachability findings |`--sarif-scope full --sarif-grouping instance --sarif-reachability all`| Most verbose output |
88
-
| Gate only on new findings |`--sarif-scope diff`| Diff mode can validly return empty SARIF |
89
-
| Filter to reachable only (legacy syntax) |`--sarif-reachable-only`| Backward-compatible alias for `--sarif-reachability reachable`|
86
+
| Basic policy enforcement in CI | Diff-based policy check |`--strict-blocking`|
87
+
| Reachable-focused SARIF for reporting | Full-scope grouped SARIF |`--reach --sarif-scope full --sarif-grouping alert --sarif-reachability reachable --sarif-file <path>`|
88
+
| Detailed reachability export for investigations | Full-scope instance SARIF |`--reach --sarif-scope full --sarif-grouping instance --sarif-reachability all --sarif-file <path>`|
Copy file name to clipboardExpand all lines: docs/cli-reference.md
+29-7Lines changed: 29 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,13 +122,13 @@ This will simultaneously generate:
122
122
- SARIF report to `results.sarif` (and stdout)
123
123
- GitLab Security Dashboard report to `gl-dependency-scanning-report.json`
124
124
125
-
> **Note:**`--enable-sarif` prints SARIF to stdout only. Use `--sarif-file <path>` to save to a file (this also implies `--enable-sarif`). Add`--sarif-reachable-only` (requires `--reach`) to filter results down to only reachable findings. Use `--sarif-scope diff|full` to choose between diff alerts (default) and full reachability facts scope. These flags are independent from `--enable-gitlab-security`, which produces a separate GitLab-specific Dependency Scanning report.
125
+
> **Note:**`--enable-sarif` prints SARIF to stdout only. Use `--sarif-file <path>` to save to a file (this also implies `--enable-sarif`). Use`--sarif-reachability` (requires `--reach` when not `all`) to filter by reachability state. Use `--sarif-scope diff|full` to choose between diff alerts (default) and full reachability facts scope. These flags are independent from `--enable-gitlab-security`, which produces a separate GitLab-specific Dependency Scanning report.
126
126
>
127
-
> `--strict-blocking`affects pass/fail behavior, not SARIF result population.
127
+
> In diff scope, `--strict-blocking`expands selection to include `new + unchanged` diff alerts for evaluation/output paths.
@@ -219,7 +219,6 @@ If you don't want to provide the Socket API Token every time then you can use th
219
219
| `--enable-json` | False | False | Output in JSON format |
220
220
| `--enable-sarif` | False | False | Enable SARIF output of results instead of table or JSON format (prints to stdout) |
221
221
| `--sarif-file` | False | | Output file path for SARIF report (implies --enable-sarif). Use this to save SARIF output to a file for upload to GitHub Code Scanning, SonarQube, VS Code, or other SARIF-compatible tools |
222
-
| `--sarif-reachable-only` | False | False | Filter SARIF output to only include reachable findings (requires --reach) |
223
222
| `--sarif-scope` | False | diff | SARIF source scope: `diff` for net-new diff alerts, or `full` for full reachability facts scope (requires --reach for full) |
224
223
| `--sarif-grouping` | False | instance| SARIF grouping mode: `instance` (one entry per package/version/advisory instance) or `alert` (grouped alert-style output, full scope only) |
225
224
| `--sarif-reachability` | False | all | SARIF reachability selector: `all`, `reachable`, `potentially`, or `reachable-or-potentially` (requires --reach when not `all`) |
- `reachability_alerts_only` (boolean, default: false): When `--reach` is enabled, only send blocking alerts (error=true) from diff scans
432
+
- `reachability_alerts_only` (boolean, default: false): When `--reach` is enabled, only send reachable vulnerabilities from the selected diff alert set (uses reachability facts when available; otherwise falls back to blocking-status behavior)
411
433
- `repos` (array): Only send alerts for specific repositories (e.g., `["owner/repo1", "owner/repo2"]`)
412
434
- `alert_types` (array): Only send specific alert types (e.g., `["malware", "typosquat"]`)
413
435
- `severities` (array): Only send alerts with specific severities (e.g., `["high", "critical"]`)
0 commit comments