Skip to content

Commit

Permalink
exporter: fix sbom supplement core detection
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Chadwell <me@jedevc.com>
  • Loading branch information
jedevc committed Feb 10, 2023
1 parent f3db114 commit 257fb65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/containerimage/attestations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 257fb65

Please sign in to comment.