Skip to content

Commit 8b68a45

Browse files
committed
Upgrade cyclonedx-bom from 0.5 to 0.8 in auditable-cyclonedx
1 parent 9e81ac1 commit 8b68a45

3 files changed

Lines changed: 70 additions & 15 deletions

File tree

Cargo.lock

Lines changed: 68 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

auditable-cyclonedx/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ categories = ["encoding"]
1111
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1212

1313
[dependencies]
14-
cyclonedx-bom = "0.5.0"
14+
cyclonedx-bom = "0.8.0"
1515
auditable-serde = {version = "0.8.0", path = "../auditable-serde"}

auditable-cyclonedx/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub fn auditable_to_minimal_cdx(input: &auditable_serde::VersionInfo) -> Bom {
6262

6363
// Validate the generated SBOM if running in debug mode (or release with debug assertions)
6464
if cfg!(debug_assertions) {
65-
assert_eq!(bom.validate(), ValidationResult::Passed);
65+
assert!(bom.validate().passed());
6666
}
6767
bom
6868
}

0 commit comments

Comments
 (0)