Skip to content

Commit

Permalink
fix: pass image reference to syft sbom source object
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Rodriguez committed Jun 11, 2024
1 parent fa57f65 commit 7c2bc53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/packager/sbom/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (b *Builder) createImageSBOM(img v1.Image, src string) ([]byte, error) {
return nil, err
}

syftSource, err := source.NewFromStereoscopeImageObject(syftImage, "", nil)
syftSource, err := source.NewFromStereoscopeImageObject(syftImage, refInfo.Reference, nil)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 7c2bc53

Please sign in to comment.