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
Add a single --exclude-paths flag (Node CLI parity) that filters BOTH SCA manifest
discovery and reachability analysis:
- New Core matcher: anchored micromatch-style globs compiled to regex (no new deps).
Scan-root-relative POSIX paths, '*' does not cross '/', '**' does, each pattern P
expanded to [P, P/**]. Threaded into find_files via cli_config; no-op when unset.
- Reach side unions --exclude-paths with the now-deprecated --reach-exclude-paths and
forwards to coana --exclude-dirs.
- Validation mirrors Node's assertValidExcludePaths (rejects negation, absolute paths,
'..' traversal, degenerate match-everything; trailing slash stripped so '**/' is rejected).
Accepts comma-strings and config-file lists.
- --reach-exclude-paths soft-deprecated: still works, [DEPRECATED] in help, warns at runtime.
Docs: document --exclude-paths under 'Path and File' (it affects every scan, not just
reach), mark --reach-exclude-paths deprecated, and refresh the reachability flag table
(--reach-analysis-timeout/-memory-limit primary names, --reach-debug,
--reach-disable-external-tool-checks, defaults delegated to coana).
Adds a CHANGELOG 2.4.3 entry and tests incl. the Node parity cases, validation, and config-file paths.
If you don't want to provide the Socket API Token every time then you can use the environment variable `SOCKET_SECURITY_API_TOKEN`
@@ -203,6 +203,7 @@ If you don't want to provide the Socket API Token every time then you can use th
203
203
|`--sub-path`| False || Sub-path within target-path for manifest file scanning (can be specified multiple times). All sub-paths are combined into a single workspace scan while preserving git context from target-path. Must be used with `--workspace-name`|
204
204
|`--workspace-name`| False || Workspace name suffix to append to repository name (repo-name-workspace_name). Must be used with `--sub-path`|
205
205
|`--excluded-ecosystems`| False | [] | List of ecosystems to exclude from analysis (JSON array string). You can get supported files from the [Supported Files API](https://docs.socket.dev/reference/getsupportedfiles) |
206
+
|`--exclude-paths`| False || Comma-separated paths/globs to exclude from **both** manifest discovery (every scan) **and** reachability analysis (e.g. `tests/**,packages/legacy,*.spec.ts`). Patterns are scan-root-relative, case-sensitive globs where `*` does not cross `/` and `**` does. Supersedes `--reach-exclude-paths`. |
206
207
207
208
#### Branch and Scan Configuration
208
209
| Parameter | Required | Default | Description |
@@ -239,16 +240,18 @@ If you don't want to provide the Socket API Token every time then you can use th
|`--reach`| False | False | Enable reachability analysis to identify which vulnerable functions are actually called by your code |
241
242
|`--reach-version`| False | latest | Version of @coana-tech/cli to use for analysis |
242
-
|`--reach-timeout`| False |1200 | Timeout in seconds for the reachability analysis (default: 1200 seconds / 20 minutes) |
243
-
|`--reach-memory-limit`| False |4096 | Memory limit in MB for the reachability analysis (default: 4096 MB / 4 GB) |
244
-
|`--reach-concurrency`| False || Control parallel analysis execution (must be >= 1)|
243
+
|`--reach-analysis-timeout`| False |*coana*| Timeout in seconds for the reachability analysis. Omitted by default, so coana applies its own (currently 600s). Alias: `--reach-timeout`|
244
+
|`--reach-analysis-memory-limit`| False |*coana*| Memory limit in MB for the reachability analysis. Omitted by default, so coana applies its own (currently 8192). Alias: `--reach-memory-limit`|
245
+
|`--reach-concurrency`| False |*coana*| Control parallel analysis execution (must be >= 1). Omitted by default, so coana applies its own (currently 1)|
245
246
|`--reach-additional-params`| False || Pass custom parameters to the coana CLI tool |
246
247
|`--reach-ecosystems`| False || Comma-separated list of ecosystems to analyze (e.g., "npm,pypi"). If not specified, all supported ecosystems are analyzed |
247
-
|`--reach-exclude-paths`| False || Comma-separated list of file paths or patterns to exclude from reachability analysis |
| `--reach-output-file` | False | .socket.facts.json | Path where reachability analysis results should be saved |
254
+
| `--reach-exclude-paths` | False | | **[DEPRECATED — use `--exclude-paths`]** Comma-separated paths to exclude from reachability analysis. Still honored (unioned with `--exclude-paths`) but will be hidden in a future release |
252
255
| `--only-facts-file` | False | False | Submit only the .socket.facts.json file to an existing scan (requires --reach and a prior scan) |
0 commit comments