Skip to content

Commit abf5d38

Browse files
committed
rl-scanner v3.2.3
1 parent 96fbff9 commit abf5d38

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

Dockerfile.cache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ RUN --mount=type=secret,id=rlsecure_license --mount=type=secret,id=rlsecure_site
1111
microdnf upgrade -y
1212
microdnf install -y --nodocs python3-pip
1313
pip3 install --no-cache-dir rl-deploy
14+
pip3 uninstall setuptools -y
15+
microdnf remove pip -y
1416
microdnf clean all
1517
rl-deploy cache \
1618
--no-tracking \

Dockerfile.no_cache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ RUN <<EORUN
77
microdnf upgrade -y
88
microdnf install -y --nodocs python3-pip
99
pip3 install --no-cache-dir rl-deploy
10+
pip3 uninstall setuptools -y
11+
microdnf remove pip -y
1012
microdnf clean all
1113

1214
chmod 755 /opt/rl-scanner/entrypoint /opt/rl-scanner/rl-scan /opt/rl-scanner/rl-prune

README.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ docker run --rm \
186186
--report-format=rl-html
187187
```
188188

189-
### Perform build reproducibility check
189+
### Perform build reproducibility checks
190190

191191
To perform a build reproducibility check, we need two build artifacts of a package version.
192192

@@ -334,26 +334,35 @@ docker run --rm \
334334
```
335335

336336

337-
### Configuration parameters
337+
## Configuration parameters for rl-scan
338338

339339
The `rl-scan` helper tool supports the following parameters.
340340

341341
| Parameter | Description |
342342
| :--------- | :------ |
343343
| `--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. |
344344
| `--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`. |
349346
| `--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. |
351347
| `--password` | Optional. Literal password string to use for decrypting password-protected files when scanning a package version. Multiple invocations are possible. |
352348
| `--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. |
353349
| `--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. |
354350
| `--message-reporter` | Optional. Use it to change the format of output messages (STDOUT) for easier integration with CI tools. Supported values: `text`, `teamcity` |
355351

356352

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+
357366
## Cleaning up old scans
358367

359368
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 \
375384
```
376385

377386

378-
### Configuration parameters
387+
### Configuration parameters for rl-prune
379388

380389
The `rl-prune` tool supports the following parameters.
381390

@@ -397,3 +406,4 @@ The `rl-prune` tool supports the following parameters.
397406
<!-- 2024-09-26: Spectra Assure CLI 2.4.0 has been released; rl-scanner v3.2.0 -->
398407
<!-- 2024-09-26: Spectra Assure CLI 2.4.1 has been released; rl-scanner v3.2.1 -->
399408
<!-- 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

Comments
 (0)