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 units to reachability timeout/memory-limit flags (#236)
--reach-analysis-timeout now accepts an optional duration unit (s/m/h, e.g.
90s, 10m, 1h) and --reach-analysis-memory-limit an optional size unit (MB/GB,
case-insensitive, e.g. 512MB, 8GB). Values are forwarded verbatim to the
reachability engine (@coana-tech/cli), which owns parsing and validation, so
the unit grammar and error messages live in a single source of truth.
To pass values through unchanged, the four flags (incl. the hidden
--reach-timeout/--reach-memory-limit aliases) drop type=int and accept raw
strings; the dataclass fields become Optional[str]. A defensive str() is kept
at the coana forward point so config-file JSON numbers (which bypass argparse's
type converter via set_defaults) still reach subprocess as strings, and the
guard uses `is not None` so an explicit empty string flows through and triggers
coana's own error rather than being silently dropped.
Bare numbers remain accepted for backward compatibility (seconds for the
timeout, MB for the memory limit) but are no longer documented. Bumped the
pinned @coana-tech/cli version to 15.5.0, which ships the unit parser.
Docs (cli-reference) and CHANGELOG updated; unit tests cover unit-bearing
values, bare-int back-compat, and int coercion.
|`--reach`| False | False | Enable reachability analysis to identify which vulnerable functions are actually called by your code. Creates a tier-1 full-application reachability scan (`scan_type=socket_tier1`). |
244
-
|`--reach-version`| False | 15.3.24| Version of @coana-tech/cli to use. Defaults to the pinned version that ships with this CLI release, so the engine only changes when you upgrade the Socket CLI. Pass `latest` to always use the newest published version (opt-in auto-update), or an explicit version (e.g. `1.2.3`) to pin it. |
245
-
|`--reach-analysis-timeout`| False |600| Timeout in seconds forthe reachability analysis. Omitted by default, so coana applies its own default. Alias: `--reach-timeout`|
246
-
|`--reach-analysis-memory-limit`| False |8192| Memory limit in MB forthe reachability analysis. Omitted by default, so coana applies its own default. Alias: `--reach-memory-limit`|
244
+
|`--reach-version`| False | 15.5.0 | Version of @coana-tech/cli to use. Defaults to the pinned version that ships with this CLI release, so the engine only changes when you upgrade the Socket CLI. Pass `latest` to always use the newest published version (opt-in auto-update), or an explicit version (e.g. `1.2.3`) to pin it. |
245
+
|`--reach-analysis-timeout`| False |10m| Timeout foreach reachability analysis run, e.g. `90s`, `10m` or `1h`. Omitted by default, so coana applies its own default (`10m`). Alias: `--reach-timeout`|
246
+
|`--reach-analysis-memory-limit`| False |8GB| Memory limit foreach reachability analysis run, e.g. `512MB` or `8GB`. Omitted by default, so coana applies its own default (`8GB`). Alias: `--reach-memory-limit`|
247
247
|`--reach-concurrency`| False | 1 | Control parallel analysis execution (must be >= 1). Omitted by default, so coana applies its own default. |
248
248
|`--reach-additional-params`| False || Pass custom parameters to the coana CLI tool |
249
249
|`--reach-ecosystems`| False || Comma-separated list of ecosystems to analyze (e.g., "npm,pypi"). If not specified, all supported ecosystems are analyzed |
0 commit comments