From 3df72ba3f02379def8c4d80b2c261ef264f38f32 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 30 Sep 2024 14:00:56 -0700 Subject: [PATCH] CDX: ensure metadata property is a string Signed-off-by: Jonathan Ringer --- src/sbomnix/sbomdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbomnix/sbomdb.py b/src/sbomnix/sbomdb.py index abac19b..4df5a51 100644 --- a/src/sbomnix/sbomdb.py +++ b/src/sbomnix/sbomdb.py @@ -183,7 +183,7 @@ def to_cdx(self, cdx_path, printinfo=True): if self.depth: prop = {} prop["name"] = "sbom_dependencies_depth" - prop["value"] = self.depth + prop["value"] = str(self.depth) cdx["metadata"]["properties"].append(prop) tool = {} tool["vendor"] = "TII"