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 }