utils/generate-cyclonedx: support for v1.7, 1.7.1

See changes:

- https://cyclonedx.org/news/cyclonedx-v1.7-released/
- https://github.com/CycloneDX/specification/releases/tag/1.7
- https://github.com/CycloneDX/specification/releases/tag/1.7.1

Since some tools like DependencyTrack don't support CycloneDX SBOM v1.7
this bump is optional and default remains v1.6.

Signed-off-by: Thomas Perale <thomas.perale@mind.be>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
This commit is contained in:
Thomas Perale
2026-06-24 12:13:38 +02:00
committed by Arnout Vandecappelle
parent 504bb61bc6
commit 6e77b6ff69

View File

@@ -539,7 +539,7 @@ def main():
parser.add_argument("--project-version", type=str, default=f"{BR2_VERSION_FULL}",
help="Specify the project version to use in the SBOM metadata (default: builroot version)")
parser.add_argument("--cdx-version", type=str, default=DEFAULT_CYCLONEDX_VERSION,
choices=["1.6", "1.6.1", "1.6.2"],
choices=["1.6", "1.6.1", "1.6.2", "1.7", "1.7.1"],
help=f"Set CycloneDX version (default: {DEFAULT_CYCLONEDX_VERSION})")
args = parser.parse_args()