From 6c814ded5473fa9b9eddded39fb8c5185b2618aa Mon Sep 17 00:00:00 2001 From: anthonyharrison Date: Thu, 2 May 2024 10:37:05 +0100 Subject: [PATCH] feat: add support for CycloneDX 1.6 --- README.md | 2 +- sbomaudit/audit.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c46593d..ce47622 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ The following section identifies the checks which are performed. The following checks are performed: -- Check that the version of the SBOM is either version 2.2 or 2.3 (SPDX) or version 1.3, 1.4 or 1.5 (CycloneDX). +- Check that the version of the SBOM is either version 2.2 or 2.3 (SPDX) or version 1.3, 1.4, 1.5 or 1.6 (CycloneDX). - Check that a creator is defined. diff --git a/sbomaudit/audit.py b/sbomaudit/audit.py index 6b9b32c..694ec4e 100644 --- a/sbomaudit/audit.py +++ b/sbomaudit/audit.py @@ -174,7 +174,7 @@ def audit_sbom(self, sbom_parser): else: self._check_value( "Up to date CycloneDX Version", - ["1.3", "1.4", "1.5"], + ["1.3", "1.4", "1.5", "1.6"], document.get_version(), ) creation_time = document.get_created() is not None