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
Lift the --reach gate on --exclude-paths so the flag can filter SCA/SBOM
manifest discovery on its own. The Coana --exclude-dirs merge happens
unconditionally; consumers (handle-create-new-scan) only run reachability
when --reach is set, so the merged options are simply unused otherwise.
Move excludePaths out of reachabilityFlags into its own excludePathsFlag
export so scan create lists it under the main Options block instead of
the reach-only section. scan reach keeps it under Reachability Options
since the command is reach-only by definition.
--cwd working directory, defaults to process.cwd()
42
42
--default-branch Set the default branch of the repository to the branch of this full-scan. Should only need to be done once, for example for the "main" or "master" branch.
43
+
--exclude-paths List of glob patterns to exclude from the scan, including SCA/SBOM manifest discovery and (when --reach is enabled) Tier 1 reachability analysis. Patterns are matched relative to the project root. Bare directory names are auto-extended to recursive globs (e.g. \`tests\` becomes \`tests/**\`). Trailing slashes are stripped. Negation patterns (\`!path\`) are not supported. Accepts a comma-separated value or multiple flags.
43
44
--interactive Allow for interactive elements, asking for input. Use --no-interactive to prevent any input questions, defaulting them to cancel/no.
--workspace The workspace in the Socket Organization that the repository is in to associate with the full scan.
56
57
57
58
Reachability Options (when --reach is used)
58
-
--exclude-paths List of glob patterns to exclude from the entire Tier 1 scan, including SCA/SBOM manifest discovery. Patterns are matched relative to the project root. Bare directory names are auto-extended to recursive globs (e.g. \`tests\` becomes \`tests/**\`). Trailing slashes are stripped. Negation patterns (\`!path\`) are not supported. Accepts a comma-separated value or multiple flags.
59
59
--reach-analysis-memory-limit The maximum memory in MB to use for the reachability analysis. The default is 8192MB.
60
60
--reach-analysis-timeout Set timeout for the reachability analysis. Split analysis runs may cause the total scan time to exceed this timeout significantly.
61
61
--reach-concurrency Set the maximum number of concurrent reachability analysis runs. It is recommended to choose a concurrency level that ensures each analysis run has at least the --reach-analysis-memory-limit amount of memory available. NPM reachability analysis does not support concurrent execution, so the concurrency level is ignored for NPM.
--output Path to write the reachability report to (must end with .json). Defaults to .socket.facts.json in the current working directory.
38
38
39
39
Reachability Options
40
-
--exclude-paths List of glob patterns to exclude from the entire Tier 1 scan, including SCA/SBOM manifest discovery. Patterns are matched relative to the project root. Bare directory names are auto-extended to recursive globs (e.g. \`tests\` becomes \`tests/**\`). Trailing slashes are stripped. Negation patterns (\`!path\`) are not supported. Accepts a comma-separated value or multiple flags.
40
+
--exclude-paths List of glob patterns to exclude from the scan, including SCA/SBOM manifest discovery and (when --reach is enabled) Tier 1 reachability analysis. Patterns are matched relative to the project root. Bare directory names are auto-extended to recursive globs (e.g. \`tests\` becomes \`tests/**\`). Trailing slashes are stripped. Negation patterns (\`!path\`) are not supported. Accepts a comma-separated value or multiple flags.
41
41
--reach-analysis-memory-limit The maximum memory in MB to use for the reachability analysis. The default is 8192MB.
42
42
--reach-analysis-timeout Set timeout for the reachability analysis. Split analysis runs may cause the total scan time to exceed this timeout significantly.
43
43
--reach-concurrency Set the maximum number of concurrent reachability analysis runs. It is recommended to choose a concurrency level that ensures each analysis run has at least the --reach-analysis-memory-limit amount of memory available. NPM reachability analysis does not support concurrent execution, so the concurrency level is ignored for NPM.
Copy file name to clipboardExpand all lines: src/commands/scan/reachability-flags.mts
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,16 @@ import constants from '../../constants.mts'
2
2
3
3
importtype{MeowFlags}from'../../flags.mts'
4
4
5
-
exportconstreachabilityFlags: MeowFlags={
5
+
exportconstexcludePathsFlag: MeowFlags={
6
6
excludePaths: {
7
7
type: 'string',
8
8
isMultiple: true,
9
9
description:
10
-
'List of glob patterns to exclude from the entire Tier 1 scan, including SCA/SBOM manifest discovery. Patterns are matched relative to the project root. Bare directory names are auto-extended to recursive globs (e.g. `tests` becomes `tests/**`). Trailing slashes are stripped. Negation patterns (`!path`) are not supported. Accepts a comma-separated value or multiple flags.',
10
+
'List of glob patterns to exclude from the scan, including SCA/SBOM manifest discovery and (when --reach is enabled) Tier 1 reachability analysis. Patterns are matched relative to the project root. Bare directory names are auto-extended to recursive globs (e.g. `tests` becomes `tests/**`). Trailing slashes are stripped. Negation patterns (`!path`) are not supported. Accepts a comma-separated value or multiple flags.',
0 commit comments