Loading sbom_scanner/sbom_utils.py +1 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,7 @@ def to_xml(bom: Bom, schema_version=SchemaVersion.V1_5) -> str: def save_bom(bom: Bom, file: Path, schema_version=SchemaVersion.V1_5) -> None: file.parent.mkdir(parents=True, exist_ok=True) return make_outputter( bom, OutputFormat.XML if file.suffix == ".xml" else OutputFormat.JSON, Loading Loading
sbom_scanner/sbom_utils.py +1 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,7 @@ def to_xml(bom: Bom, schema_version=SchemaVersion.V1_5) -> str: def save_bom(bom: Bom, file: Path, schema_version=SchemaVersion.V1_5) -> None: file.parent.mkdir(parents=True, exist_ok=True) return make_outputter( bom, OutputFormat.XML if file.suffix == ".xml" else OutputFormat.JSON, Loading