From 257fb65c9cf0e1f63d98e326713b80b5224f10b5 Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Tue, 7 Feb 2023 17:00:18 +0000 Subject: [PATCH] exporter: fix sbom supplement core detection Signed-off-by: Justin Chadwell --- exporter/containerimage/attestations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/containerimage/attestations.go b/exporter/containerimage/attestations.go index 8d28675e07d8..a41c6039f0ba 100644 --- a/exporter/containerimage/attestations.go +++ b/exporter/containerimage/attestations.go @@ -44,7 +44,7 @@ func supplementSBOM(ctx context.Context, s session.Group, target cache.Immutable if !ok { return att, nil } - if n, _, _ := strings.Cut(att.Path, "."); n != string(name) { + if n, _, _ := strings.Cut(filepath.Base(att.Path), "."); n != string(name) { return att, nil }