From 4502e52795ddc9ec2731b8cb4acdbb2c9db44c3f Mon Sep 17 00:00:00 2001
From: Andrea Vibelli <avibelli@redhat.com>
Date: Sun, 1 Dec 2024 22:46:55 +0100
Subject: [PATCH] feat(SBOMER-225): Adjust bom-ref for container image
 manifests

---
 .../sbomer/cli/feature/sbom/adjuster/SyftImageAdjuster.java      | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cli/src/main/java/org/jboss/sbomer/cli/feature/sbom/adjuster/SyftImageAdjuster.java b/cli/src/main/java/org/jboss/sbomer/cli/feature/sbom/adjuster/SyftImageAdjuster.java
index 3be3f63f3..fa284b517 100644
--- a/cli/src/main/java/org/jboss/sbomer/cli/feature/sbom/adjuster/SyftImageAdjuster.java
+++ b/cli/src/main/java/org/jboss/sbomer/cli/feature/sbom/adjuster/SyftImageAdjuster.java
@@ -457,6 +457,7 @@ private void populateDependencies(List<Dependency> dependencies, List<Component>
         }
 
         components.forEach(component -> {
+            component.setBomRef(component.getPurl());
             dependencies.add(SbomUtils.createDependency(component.getBomRef()));
             populateDependencies(dependencies, component.getComponents());
         });