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 3d1b16f
Browse filesBrowse the repository at this point in the historyBrowse files
Log the strict-blocking comparison only on runs that compare
The no-manifest message was logged when the mode was chosen, before the
SCM event type was known. Skipped pull request events (closed, for example)
printed that every manifest would be compared and then exited without a
scan, and SCM branch pipelines printed it before creating a full scan. Log
it after the event check, only when the run goes on to compare.
Document the wider reach of the change: without --scm, default-branch
pushes and non-git target paths now compare under --strict-blocking and can
fail on existing blocking alerts. Note that --reach pull request scans need
a default-branch scan made with --reach, and reword the API Mode line.
Add tests for GitLab merge request and branch pipelines, an API-mode
default-branch push, and the log message. The branch pipeline tests now
return a blocking alert from the full scan, so they fail if blocking were
left on.
Copy file name to clipboardExpand all lines: docs/cli-reference.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -652,7 +652,8 @@ Security issues detected by Socket Security:
652
652
### Important Notes
653
653
654
654
- **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).
655
-
- **No manifest changed**: When the changed files include no supported manifest, the CLI still runs the comparison over every manifest in the target path, as with `--ignore-commit-files`, instead of falling back to a full scan. Code-only pull requests fail on existing blocking alerts and list them in the PR/MR comment. This adds the comparison and existing-alert requests to those runs.
655
+
- **No manifest changed**: When the changed files include no supported manifest, the CLI still runs the comparison over every manifest in the target path, as with `--ignore-commit-files`, instead of falling back to a full scan. Code-only pull requests fail on existing blocking alerts and list them in the PR/MR comment. Without `--scm`, this also applies to default-branch pushes and to target paths that aren't git repositories, so those runs fail on existing blocking alerts where they used to pass. This adds the comparison and existing-alert requests to those runs.
656
+
- **With `--reach`**: The comparison uses the last default-branch scan made with `--reach` as its baseline. If the default branch is scanned without `--reach`, the baseline is empty and every alert is reported as new. The exit code is the same under `--strict-blocking`, but the PR/MR comment says the change introduced them. Scan the default branch with `--reach` too.
656
657
- **Error-Level Only**: Only fails on `error=True` alerts (blocking severity), not warnings.
657
658
- **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.
658
659
- **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.
@@ -763,7 +764,7 @@ The CLI determines which files to scan based on the following logic:
763
764
### Scanning Modes
764
765
765
766
- **Differential Mode**: When manifest files are detected in changes, performs a diff scan with PR/MR comment integration
766
-
- **API Mode**: When no manifest files are in changes, creates a full scan report without PR comments but still scans the entire repository. Not used with `--strict-blocking`
767
+
- **API Mode**: When no manifest files are in changes, creates a full scan report without PR comments but still scans the entire repository. With `--strict-blocking`, the CLI runs a comparison instead (see Automatic Fallback above); SCM branch pipelines still create a full scan
767
768
- **Force Mode**: With `--ignore-commit-files`, always runs a comparison regardless of which files changed, over every manifest in the target path
768
769
- **Forced Diff Mode**: With `--enable-diff`, forces differential mode even when using `--integration api` (without SCM integration)
0 commit comments