From bc426e2e09129347f5860cdaec319bec93c59fd2 Mon Sep 17 00:00:00 2001 From: wkoot <3715211+wkoot@users.noreply.github.com> Date: Wed, 11 Sep 2024 11:19:54 +0200 Subject: [PATCH] Include BomRef within Component hash calculation Addresses https://github.com/CycloneDX/cyclonedx-python-lib/issues/540 Signed-off-by: wkoot <3715211+wkoot@users.noreply.github.com> --- cyclonedx/model/component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyclonedx/model/component.py b/cyclonedx/model/component.py index 5287030b..f3410d2d 100644 --- a/cyclonedx/model/component.py +++ b/cyclonedx/model/component.py @@ -1783,7 +1783,7 @@ def __hash__(self) -> int: self.mime_type, self.supplier, self.author, self.publisher, self.description, self.scope, tuple(self.hashes), tuple(self.licenses), self.copyright, self.cpe, - self.purl, + self.purl, self.bom_ref, self.swid, self.pedigree, tuple(self.external_references), tuple(self.properties), tuple(self.components), self.evidence, self.release_notes, self.modified,