feat(scanner): add isLatest flag support for projects in Dependency Track (DT >= 4.12.0)
Closes #9
See merge request to-be-continuous/tools/dt-sbom-scanner!90
This tool scans for SBOM files and publishes them to a Dependency Track server.
@@ -78,6 +78,8 @@ Project settings:
Set up how the parent aggregates its direct children (ALL: all, TAG: with tag matching --parent-collection-logic-tag, LATEST: flagged as latest, NONE: disable), default is ALL (DT version >= 4.13.0)
Tag for aggregation if--parent-collection-logic is set to TAG
--latest-depth LATEST_DEPTH
Number of trailing project path elements to mark as LATEST (defaults to 1 - _only the leaf element_).<br/>_Only supported on DT >= 4.12.0_
SBOM management:
-m, --merge Merge all SBOM files into one
@@ -124,6 +126,8 @@ If none is specified, the program will look for SBOM files matching `**/*.cyclon
| `-t` / `--tags` | `$DEPTRACK_TAGS` | Comma separated list of tags to put in the project in `autoCreate` mode |
| `--parent-collection-logic` | `$DEPTRACK_PARENT_COLLECTION_LOGIC` | Set up how the parent aggregates its direct children (see doc), default is ALL |
| `--parent-collection-logic-tag` | `$DEPTRACK_PARENT_COLLECTION_LOGIC_TAG` | Tag for aggregation if `--parent-collection-logic` is set to `TAG` |
| `--latest-depth` | `$DEPTRACK_LATEST_DEPTH` | Number of trailing project path elements to mark as LATEST (defaults to 1 - _only the leaf element_).<br/>_Only supported on DT >= 4.12.0_ |