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
+84-5Lines changed: 84 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ This optional proxy configuration can be provided using environment variables.
76
76
The following environment variables can be used with this image.
77
77
78
78
| Environment variable | Description |
79
-
|:--------- |:------ |
79
+
| --------- | ------ |
80
80
|`RLSECURE_ENCODED_LICENSE`| Required. The `rl-secure` license file as a Base64-encoded string. Users must encode the contents of your license file, and provide the resulting string with this variable. |
81
81
|`RLSECURE_SITE_KEY`| Required. The `rl-secure` license site key. The site key is a string generated by ReversingLabs and sent to users with the license file. |
82
82
|`RLSECURE_VAULT_KEY`| Optional. Password vault key to use for preserving and accessing passwords in a package store (rl-store). |
@@ -340,7 +340,7 @@ docker run --rm \
340
340
The `rl-scan` helper tool supports the following parameters.
341
341
342
342
| Parameter | Description |
343
-
|:--------- |:------ |
343
+
| --------- | ------ |
344
344
|`--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. |
345
345
|`--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. |
346
346
|`--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`. |
@@ -357,7 +357,7 @@ The `rl-scan` helper tool supports the following parameters.
357
357
The following `rl-scan` parameters are applicable only when working with a package store.
358
358
359
359
| Parameter | Description |
360
-
|:--------- |:------ |
360
+
| --------- | ------ |
361
361
|`--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. |
362
362
|`--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`. |
363
363
|`--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. |
@@ -391,7 +391,7 @@ docker run --rm \
391
391
The `rl-prune` tool supports the following parameters.
392
392
393
393
| Parameter | Description |
394
-
|:--------- |:------ |
394
+
| --------- | ------ |
395
395
|`--rl-store`| Required. Path to an existing `rl-secure` store in which you want to prune the data. |
396
396
|`--purl`| Required. Package URL to prune, in the format `[pkg:namespace/]<project>[</package>[<@version>]]`. |
397
397
|`--before-date`| Optional. Remove all versions scanned before the timestamp specified in ISO-8601 format. |
@@ -400,7 +400,86 @@ The `rl-prune` tool supports the following parameters.
400
400
|`--hours-older`| Optional. Remove all versions with the last scan date older than the specified number of hours. |
401
401
|`--message-reporter`| Optional. Use it to change the format of output messages (STDOUT) for easier integration with CI tools. Supported values: `text`, `teamcity`|
402
402
403
-
<!-- 2025-06-18; Spectra Assure CLI 2.8.1 has been released; rl-scanner v3.6.1 -->
403
+
## Scanning files from URLs and purls
404
+
405
+
### rl-scan-url
406
+
407
+
Scanning a remote HTTP or HTTPS URL can be done with the `rl-scanner` docker image using the `rl-scan-url` command.
408
+
409
+
example:
410
+
411
+
```
412
+
413
+
URL="https://www.7-zip.org/a/7z2500-x64.exe"
414
+
415
+
docker run --rm \
416
+
-u $(id -u):$(id -g) \
417
+
-e RLSECURE_ENCODED_LICENSE \
418
+
-e RLSECURE_SITE_KEY \
419
+
-v $(pwd)/report:/report \
420
+
reversinglabs/rl-scanner \
421
+
rl-scan-url \
422
+
--import-url="${URL}" \
423
+
--report-path=/report
424
+
```
425
+
426
+
When the URL requires authentication you can use either `--auth-user`, `--auth-pass` or `--bearer-token` to pass authentication information to the URL request.
427
+
428
+
### rl-scan-purl
429
+
430
+
Scanning a PURL present at `secure.software` can be done with the `rl-scanner` docker image using the `rl-scan-purl` command.
431
+
For details see the cli documentation at: [importing-files-from-urls](https://docs.secure.software/cli/commands/scan#importing-files-from-urls).
432
+
433
+
example:
434
+
435
+
```
436
+
437
+
PURL="pkg:npm/vue"
438
+
439
+
docker run --rm \
440
+
-u $(id -u):$(id -g) \
441
+
-e RLSECURE_ENCODED_LICENSE \
442
+
-e RLSECURE_SITE_KEY \
443
+
-v $(pwd)/report:/report \
444
+
reversinglabs/rl-scanner \
445
+
rl-scan-purl \
446
+
--import-purl="${PURL}" \
447
+
--report-path=/report
448
+
```
449
+
450
+
## Configuration parameters for rl-scan-url and rl-scan-purl
451
+
452
+
For rl-scan-purl or rl-scan-url commands, instead of the `--package-path` parameter specify the `--import-url` or `--import-purl` parameter.
453
+
454
+
All other parameters for the `rl-scan` command can be used with `rl-scan-url` or `rl-scan-purl`.
455
+
456
+
- If the PURL or URL requires **basic authentication**, use the `--auth-user` and `--auth-pass` parameters.
457
+
- If the PURL or URL requires **token-based authentication**, use the `--bearer-token` parameter.
458
+
459
+
### rl-scan-url
460
+
461
+
Additional parameters for `rl-scan-url`
462
+
463
+
| Parameter | Description |
464
+
| -------------- | ------------ |
465
+
|`--import-url`| Mandatory. The URL to the resource you want to scan, only HTTP or HTTPS are supported. |
466
+
|`--auth-user`| Optional. If the URL uses `basic authentication` specicy the `user` with this parameter. Cannot be used in combination with `--bearer-token`. |
467
+
|`--auth-pass`| Optional. If the URL uses `basic authentication` specicy the `password` with this parameter. Cannot be used in combination with `--bearer-token`. |
468
+
|`--bearer-token`| Optional. If the URL uses `token authentication` specicy the `token` with this parameter. Cannot be used in combination with either `--auth--user` or `--auth-pass`. |
469
+
470
+
### rl-scan-purl
471
+
472
+
Additional parameters for `rl-scan-purl`
473
+
474
+
| Parameter | Description |
475
+
| -------------- | ------------ |
476
+
|`--import-purl`| The purl (package URL) of the software package you want to download and scan, in the format `pkg:<type>`/<item>. Supported package types: `npm`, `gem`, `pypi`, `vsx`, `nuget`. The item specified will be downloaded from Spectra Assure Community (secure.software). |
477
+
|`--auth-user`| Optional. If the URL uses `basic authentication` specify the `user` with this parameter. Cannot be used in combination with `--bearer-token`. |
478
+
|`--auth-pass`| Optional. If the URL uses `basic authentication` specify the `password` with this parameter. Cannot be used in combination with `--bearer-token`. |
479
+
|`--bearer-token`| Optional. If the URL uses `token authentication` specicy the `token` with this parameter. Cannot be used in combination with either `--auth--user` or `--auth-pass`. |
480
+
481
+
404
482
<!-- 2025-07-03; Spectra Assure CLI 2.8.2 has been released; rl-scanner v3.6.2 -->
405
483
<!-- 2025-07-17; Spectra Assure CLI 2.9.0 has been released; rl-scanner v3.7.0 -->
406
484
<!-- 2025-07-31; Spectra Assure CLI 3.0.0 has been released; rl-scanner v3.8.0 -->
485
+
<!-- 2025-08-14; Spectra Assure CLI 3.0.1 has been released; rl-scanner v3.8.1 -->
0 commit comments