Skip to content

Commit 351ee2c

Browse files
committed
Update docs
Signed-off-by: Prabhu Subramanian <[email protected]>
1 parent 55a65ec commit 351ee2c

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,11 @@ usage: depscan [-h] [--config CONFIG] [--no-banner] [-i SRC_DIR_IMAGE] [-o REPOR
105105
[--profile {appsec,research,operational,threat-modeling,license-compliance,generic,machine-learning,ml,deep-learning,ml-deep,ml-tiny}]
106106
[--lifecycle {pre-build,build,post-build} [{pre-build,build,post-build} ...]]
107107
[--technique {auto,source-code-analysis,binary-analysis,manifest-analysis,hash-comparison,instrumentation,filename} [{auto,source-code-analysis,binary-analysis,manifest-analysis,hash-comparison,instrumentation,filename} ...]]
108-
[--bom-engine {auto,CdxgenGenerator,CdxgenServerGenerator,CdxgenImageBasedGenerator,BlintGenerator} | --vulnerability-analyzer {auto,VDRAnalyzer,LifecycleAnalyzer} |
109-
--reachability-analyzer {off,FrameworkReachability,SemanticReachability}] [--no-suggest] [--risk-audit] [--cdxgen-args CDXGEN_ARGS] [--private-ns PRIVATE_NS] [-t PROJECT_TYPE [PROJECT_TYPE ...]]
110-
[--bom BOM | --bom-dir BOM_DIR | --purl SEARCH_PURL] [--report-template REPORT_TEMPLATE] [--report-name REPORT_NAME] [--deep] [--fuzzy-search] [--search-order {purlpcu,cpe,cpu,url}] [--no-universal]
111-
[--no-vuln-table] [--server] [--server-host SERVER_HOST] [--server-port SERVER_PORT] [--cdxgen-server CDXGEN_SERVER] [--debug] [--explain] [-v]
108+
[--bom-engine {auto,CdxgenGenerator,CdxgenServerGenerator,CdxgenImageBasedGenerator,BlintGenerator} |
109+
--vulnerability-analyzer {auto,VDRAnalyzer,LifecycleAnalyzer}] [--reachability-analyzer {off,FrameworkReachability,SemanticReachability}] [--no-suggest]
110+
[--risk-audit] [--cdxgen-args CDXGEN_ARGS] [--private-ns PRIVATE_NS] [-t PROJECT_TYPE [PROJECT_TYPE ...]] [--bom BOM | --bom-dir BOM_DIR | --purl SEARCH_PURL]
111+
[--report-template REPORT_TEMPLATE] [--report-name REPORT_NAME] [--deep] [--fuzzy-search] [--search-order {purl,pcu,cpe,cpu,url}] [--no-universal]
112+
[--no-vuln-table] [--server] [--server-host SERVER_HOST] [--server-port SERVER_PORT] [--cdxgen-server CDXGEN_SERVER] [--debug] [-q | --explain] [-v]
112113
113114
Fully open-source security and license audit for application dependencies and container images based on known vulnerabilities and advisories.
114115
@@ -138,7 +139,8 @@ options:
138139
--cdxgen-args CDXGEN_ARGS
139140
Additional arguments to pass to cdxgen
140141
--private-ns PRIVATE_NS
141-
Private namespace to use while performing oss risk audit. Private packages should not be available in public registries by default. Comma separated values accepted.
142+
Private namespace to use while performing oss risk audit. Private packages should not be available in public registries by default. Comma separated
143+
values accepted.
142144
-t, --type PROJECT_TYPE [PROJECT_TYPE ...]
143145
Override project types if auto-detection is incorrect. Multiple values supported.
144146
--bom BOM Examine using the given Software Bill-of-Materials (SBOM) file in CycloneDX format. Use cdxgen command to produce one.
@@ -150,7 +152,7 @@ options:
150152
Filename of the custom report written to the --reports-dir
151153
--deep Perform deep scan by passing this --deep argument to cdxgen. Useful while scanning docker images and OS packages.
152154
--fuzzy-search Perform fuzzy search by creating variations of package names. Use this when the input SBOM lacks a PURL.
153-
--search-order {purlpcu,cpe,cpu,url}
155+
--search-order {purl,pcu,cpe,cpu,url}
154156
Attributes to use while searching for vulnerabilities. Default: PURL, CPE, URL (pcu).
155157
--no-universal Depscan would attempt to perform a single universal scan instead of individual scans per language type.
156158
--no-vuln-table Do not print the table with the full list of vulnerabilities. This can help reduce console output.

depscan/cli_options.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ def build_parser():
200200
parser.add_argument(
201201
"--search-order",
202202
choices=(
203-
"purlpcu",
203+
"purl",
204+
"pcu",
204205
"cpe",
205206
"cpu",
206207
"url",

documentation/docs/cli-usage.mdx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ usage: depscan [-h] [--config CONFIG] [--no-banner] [-i SRC_DIR_IMAGE] [-o REPOR
3333
[--profile {appsec,research,operational,threat-modeling,license-compliance,generic,machine-learning,ml,deep-learning,ml-deep,ml-tiny}]
3434
[--lifecycle {pre-build,build,post-build} [{pre-build,build,post-build} ...]]
3535
[--technique {auto,source-code-analysis,binary-analysis,manifest-analysis,hash-comparison,instrumentation,filename} [{auto,source-code-analysis,binary-analysis,manifest-analysis,hash-comparison,instrumentation,filename} ...]]
36-
[--bom-engine {auto,CdxgenGenerator,CdxgenServerGenerator,CdxgenImageBasedGenerator,BlintGenerator} | --vulnerability-analyzer {auto,VDRAnalyzer,LifecycleAnalyzer} |
37-
--reachability-analyzer {off,FrameworkReachability,SemanticReachability}] [--no-suggest] [--risk-audit] [--cdxgen-args CDXGEN_ARGS] [--private-ns PRIVATE_NS] [-t PROJECT_TYPE [PROJECT_TYPE ...]]
38-
[--bom BOM | --bom-dir BOM_DIR | --purl SEARCH_PURL] [--report-template REPORT_TEMPLATE] [--report-name REPORT_NAME] [--deep] [--fuzzy-search] [--search-order {purlpcu,cpe,cpu,url}] [--no-universal]
39-
[--no-vuln-table] [--server] [--server-host SERVER_HOST] [--server-port SERVER_PORT] [--cdxgen-server CDXGEN_SERVER] [--debug] [--explain] [-v]
36+
[--bom-engine {auto,CdxgenGenerator,CdxgenServerGenerator,CdxgenImageBasedGenerator,BlintGenerator} |
37+
--vulnerability-analyzer {auto,VDRAnalyzer,LifecycleAnalyzer}] [--reachability-analyzer {off,FrameworkReachability,SemanticReachability}] [--no-suggest]
38+
[--risk-audit] [--cdxgen-args CDXGEN_ARGS] [--private-ns PRIVATE_NS] [-t PROJECT_TYPE [PROJECT_TYPE ...]] [--bom BOM | --bom-dir BOM_DIR | --purl SEARCH_PURL]
39+
[--report-template REPORT_TEMPLATE] [--report-name REPORT_NAME] [--deep] [--fuzzy-search] [--search-order {purl,pcu,cpe,cpu,url}] [--no-universal]
40+
[--no-vuln-table] [--server] [--server-host SERVER_HOST] [--server-port SERVER_PORT] [--cdxgen-server CDXGEN_SERVER] [--debug] [-q | --explain] [-v]
4041
4142
Fully open-source security and license audit for application dependencies and container images based on known vulnerabilities and advisories.
4243
@@ -66,7 +67,8 @@ options:
6667
--cdxgen-args CDXGEN_ARGS
6768
Additional arguments to pass to cdxgen
6869
--private-ns PRIVATE_NS
69-
Private namespace to use while performing oss risk audit. Private packages should not be available in public registries by default. Comma separated values accepted.
70+
Private namespace to use while performing oss risk audit. Private packages should not be available in public registries by default. Comma separated
71+
values accepted.
7072
-t, --type PROJECT_TYPE [PROJECT_TYPE ...]
7173
Override project types if auto-detection is incorrect. Multiple values supported.
7274
--bom BOM Examine using the given Software Bill-of-Materials (SBOM) file in CycloneDX format. Use cdxgen command to produce one.
@@ -78,7 +80,7 @@ options:
7880
Filename of the custom report written to the --reports-dir
7981
--deep Perform deep scan by passing this --deep argument to cdxgen. Useful while scanning docker images and OS packages.
8082
--fuzzy-search Perform fuzzy search by creating variations of package names. Use this when the input SBOM lacks a PURL.
81-
--search-order {purlpcu,cpe,cpu,url}
83+
--search-order {purl,pcu,cpe,cpu,url}
8284
Attributes to use while searching for vulnerabilities. Default: PURL, CPE, URL (pcu).
8385
--no-universal Depscan would attempt to perform a single universal scan instead of individual scans per language type.
8486
--no-vuln-table Do not print the table with the full list of vulnerabilities. This can help reduce console output.

0 commit comments

Comments
 (0)