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
{{ message }}
Repository navigation
Commit 12b3b45
Browse filesBrowse the repository at this point in the historyBrowse files
Keep persistent alerts across dependency version changes
Load current alerts for added and updated packages in strict diff
mode. Report findings omitted by the comparison as existing so a Block
advisory that survives a version change still fails the run.
Copy file name to clipboardExpand all lines: docs/cli-reference.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -669,7 +669,7 @@ Security issues detected by Socket Security:
669
669
670
670
- **Diff Mode Only**: The flag applies when a scan comparison runs, with or without SCM integration. A full scan logs a warning and does not evaluate existing violations; see [Scan type by pipeline](ci-cd.md#scan-type-by-pipeline).
671
671
- **Error-Level Only**: Only fails on `error=True` alerts (blocking severity), not warnings.
672
-
- **Existing alerts come from the full scan**: The scan comparison doesn't carry alerts on unchanged packages, so the CLI reads them from the new full scan, at the cost of one more API request per run. If that request fails or omits an unchanged package, the run fails with the infrastructure-error code rather than passing without them.
672
+
- **Existing alerts come from the full scan**. The CLI reads alerts on unchanged packages and findings that persist across dependency version changes from the new full scan. This takes up to one additional full-scan fetch. A failed fetch or a missing package in that response triggers the infrastructure-error exit code.
673
673
- **PR/MR comments**: Existing alerts are listed in their own table after the new ones, blocking first, with license violations grouped per package. `@SocketSecurity ignore` applies to them too. Very large sets are cut off before the comment reaches GitHub's size limit, with a link to the full report. Ignoring every displayed alert preserves the warning about omitted findings;`ignore-all` also clears omitted findings.
674
674
- **Priority**: `--disable-blocking` takes precedence - if both flags are set, the build will always pass.
675
675
- **First Scan**: On the very first scan of a repository, there are no "existing" violations, so behavior is identical to standard mode.
|`--enable-json`, `--enable-sarif`, `--enable-gitlab-security` or `--generate-license` on a full scan |`GET orgs/{org}/full-scans/{id}` (scan contents) |`full-scans:list`|
126
-
|`--strict-blocking`, `--enable-gitlab-security` or `--legal-format fossa` on a run that compares scans |`GET orgs/{org}/full-scans/{id}` (alerts on unchanged packages) |`full-scans:list`|
126
+
|`--strict-blocking`, `--enable-gitlab-security` or `--legal-format fossa` on a run that compares scans |`GET orgs/{org}/full-scans/{id}` (existing alerts) |`full-scans:list`|
127
127
128
128
`--reach` also runs the analysis engine with the same token. The engine reports to the
129
129
`tier1-reachability-scan/*` endpoints, which check `full-scans:create`.
**Existing alerts ({len(alerts)}).** These are on dependencies this change didn't add or update. `--strict-blocking` fails the run on the {blocking} with a **Block** action.
1224
+
**Existing alerts ({len(alerts)}).** The baseline also contains these findings. `--strict-blocking` fails the run on the {blocking} with a **Block** action.
0 commit comments