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
Copy file name to clipboardExpand all lines: README.md
+18-8Lines changed: 18 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -186,7 +186,7 @@ docker run --rm \
186
186
--report-format=rl-html
187
187
```
188
188
189
-
### Perform build reproducibility check
189
+
### Perform build reproducibility checks
190
190
191
191
To perform a build reproducibility check, we need two build artifacts of a package version.
192
192
@@ -334,26 +334,35 @@ docker run --rm \
334
334
```
335
335
336
336
337
-
###Configuration parameters
337
+
## Configuration parameters for rl-scan
338
338
339
339
The `rl-scan` helper tool supports the following parameters.
340
340
341
341
| Parameter | Description |
342
342
| :--------- | :------ |
343
343
|`--package-path`| Required. Path to the software package (the file you want to scan). The specified file must exist in the **package source** directory mounted to the container. |
344
344
|`--report-path`| Required. Path to the location where you want to store analysis reports. The specified path must exist in the **reports destination** directory mounted to the container. |
345
-
|`--report-format`| Required. A comma-separated list of report formats to generate. Supported values: `cyclonedx`, `rl-checks`, `rl-cve`, `rl-html`, `rl-json`, `sarif`, `spdx`, `all`. |
346
-
|`--rl-store`| Optional. Path to an existing rl-secure package store that will be used for the scan. Use this parameter when you already have a package store and want to scan the existing package versions inside it or add new package versions to it. The package store directory must be mounted to the container as a part of the Docker command. |
347
-
|`--purl`| Optional. Package URL used for the scan (must be in the format `[pkg:namespace/]<project></package><@version>`). Package URLs are unique identifiers used to associate the scanned package version with a project and a package in the rl-store. |
348
-
|`--diff-with`| Optional. Version number of a previously scanned package against which you want to compare (diff) the package version you're scanning. The version selected for diffing must exist in the same project and package as the version you're scanning. The package store must be specified with the --rl-store parameter. |
345
+
|`--report-format`| Required. A comma-separated list of report formats to generate. Supported values: `cyclonedx`, `rl-checks`, `rl-cve`, `rl-html`, `rl-json`, `rl-uri`, `sarif`, `spdx`, `all`. |
349
346
|`--rl-level`| Optional. Scan level used for report generation. Can't be used with an existing rl-store. Read more on how to use the [RL-Levels feature](https://docs.secure.software/concepts/levels). |
350
-
|`--vault-key`| Optional. The "master" vault key used to protect saved passwords for an existing rl-store. When using a package store and scanning password-protected package versions, this key must be provided together with the password(s) in the scan command to allow saving the password(s) to the vault. |
351
347
|`--password`| Optional. Literal password string to use for decrypting password-protected files when scanning a package version. Multiple invocations are possible. |
352
348
|`--password-list`| Optional. Path to a password list file to use for decrypting password-protected files when scanning a package version. Multiple invocations are possible. |
353
349
|`--encoded-password-list`| Optional. Base64-encoded contents of a password list file to use for decrypting password-protected files when scanning a package version. Multiple invocations are possible. |
354
350
|`--message-reporter`| Optional. Use it to change the format of output messages (STDOUT) for easier integration with CI tools. Supported values: `text`, `teamcity`|
355
351
356
352
353
+
### Package store configuration parameters
354
+
355
+
The following `rl-scan` parameters are applicable only when working with a package store.
356
+
357
+
| Parameter | Description |
358
+
| :--------- | :------ |
359
+
|`--rl-store`| Required when using a package store. Path to an existing rl-secure package store that will be used for the scan. Use this parameter when you already have a package store and want to scan the existing package versions inside it or add new package versions to it. The package store directory must be mounted to the container as a part of the Docker command. |
360
+
|`--purl`| Required when using a package store. Package URL used for the scan (must be in the format `[pkg:namespace/]<project></package><@version>`). Package URLs are unique identifiers used to associate the scanned package version with a project and a package in the rl-store. This parameter must be used together with `--rl-store`. <br /><br />To use the reproducibility checks feature and analyze a reproducible build artifact of a package version, append `?build=repro` to the package URL of the artifact when scanning it: `--purl=project/[email protected]?build=repro`. |
361
+
|`--diff-with`| Optional. Use this parameter to compare (diff) the package version you're scanning against a previous version. The parameter accepts a package version number as the value. The version selected for diffing must exist in the same project and package as the version you're scanning. The package store must be specified with the `--rl-store` parameter. <br /><br /> This parameter is ignored when analyzing reproducible build artifacts. |
362
+
|`--replace`| Optional. Replace (overwrite) a package version (specified with `--purl`) that already exists in the package store with the file you're scanning. The package store must be specified with the `--rl-store` parameter. |
363
+
|`--vault-key`| Optional. The "master" vault key used to protect saved passwords for an existing rl-store. When using a package store and scanning password-protected package versions, this key must be provided together with the password(s) in the scan command to allow saving the password(s) to the vault. |
364
+
365
+
357
366
## Cleaning up old scans
358
367
359
368
When an existing package store is used to persist the data between scans, storage usage grows with each new scan. To clean up old scan reports and free up used storage space, use the `rl-prune` helper tool.
@@ -375,7 +384,7 @@ docker run --rm \
375
384
```
376
385
377
386
378
-
### Configuration parameters
387
+
### Configuration parameters for rl-prune
379
388
380
389
The `rl-prune` tool supports the following parameters.
381
390
@@ -397,3 +406,4 @@ The `rl-prune` tool supports the following parameters.
397
406
<!-- 2024-09-26: Spectra Assure CLI 2.4.0 has been released; rl-scanner v3.2.0 -->
398
407
<!-- 2024-09-26: Spectra Assure CLI 2.4.1 has been released; rl-scanner v3.2.1 -->
399
408
<!-- 2024-10-24: Spectra Assure CLI 2.4.2 has been released; rl-scanner v3.2.2 -->
409
+
<!-- 2024-11-07: Spectra Assure CLI 2.4.3 has been released; rl-scanner v3.2.3 -->
0 commit comments