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
Application vulnerabilities would be reported for all Linux distros and Windows. To download the full vulnerability database suitable for scanning OS, invoke dep-scan with `--cache` for the first time. dep-scan would also download the appropriate database based on project type automatically.
Download the executable binary for your operating system from the [releases page](https://github.com/owasp-dep-scan/depscan-bin/releases). These binary bundle the following:
- Uploading a SBOM file and generating results based on it.
129
+
-Uploading a SBOM file and generating results based on it.
130
130
131
131
```bash
132
132
curl -X POST -H 'Content-Type: multipart/form-data' -F 'file=@/tmp/app/sbom_file.json' http://0.0.0.0:7070/scan?type=js
@@ -315,14 +315,14 @@ depscan --profile research -t js -i <source directory> --reports-dir <reports di
315
315
316
316
The following environment variables can be used to customise the behaviour.
317
317
318
-
- VDB_HOME - Directory to use for caching database. For docker based execution, this directory should get mounted as a volume from the host
318
+
- VDB_HOME - Directory to use for caching database. For docker based execution, this directory should get mounted as a volume from the host
319
319
320
320
## GitHub Security Advisory
321
321
322
322
To download security advisories from GitHub, a personal access token with minimal permissions is necessary.
323
323
324
-
- Fine-grained token: Grant no permissions and select the following for repository access: `Public Repositories (read-only)`
325
-
- Token (classic): Grant no permissions
324
+
- Fine-grained token: Grant no permissions and select the following for repository access: `Public Repositories (read-only)`
325
+
- Token (classic): Grant no permissions
326
326
327
327
```bash
328
328
export GITHUB_TOKEN="<PAT token>"
@@ -444,19 +444,32 @@ Severity counts:
444
444
* Unspecified: {{ summary.UNSPECIFIED }}
445
445
```
446
446
447
-
The objects available are taken from the CycloneDX *.vdr.json BOM file generated, just have a look to the file for its full structure:
447
+
The objects available are taken from the CycloneDX \*.vdr.json BOM file generated, just have a look to the file for its full structure:
448
448
449
-
* `metadata`
450
-
* `vulnerabilities`
451
-
* `components`
452
-
* `dependencies`
453
-
* `services`
449
+
- `metadata`
450
+
- `vulnerabilities`
451
+
- `components`
452
+
- `dependencies`
453
+
- `services`
454
454
455
455
`summary` is a dictionary type with vulnerability severity quantities as shown in the example above.
456
456
Furthermore insights are imaginably to be made available to the template, please reach out or contribute on demand.
457
457
458
458
We appreciate if you like to contribute your report templates as examples, please add/find them [here](contrib/report-templates/).
459
459
460
+
## Performance tuning
461
+
462
+
### Use nydus to speed up the initial vdb download
463
+
464
+
vdb v5 is published in RAFS (Registry Accelerated File System) format with better de-duplication and packing. depscan would automatically use this image if `nydus-static` binary is available in the PATH.
0 commit comments