diff --git a/go.mod b/go.mod index 10153f84..b0615e3e 100644 --- a/go.mod +++ b/go.mod @@ -58,7 +58,7 @@ require ( oras.land/oras-go/v2 v2.3.0 ) -replace github.com/anchore/syft => github.com/noqcks/syft v0.0.0-20231012144435-aa2262d32557 +replace github.com/anchore/syft => github.com/noqcks/syft v0.0.0-20231107190905-9cd3f1bd08e2 require ( cloud.google.com/go v0.110.2 // indirect diff --git a/go.sum b/go.sum index ef919575..c1961fd5 100644 --- a/go.sum +++ b/go.sum @@ -814,8 +814,8 @@ github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKt github.com/muesli/termenv v0.15.2 h1:GohcuySI0QmI3wN8Ok9PtKGkgkFIk7y6Vpb5PvrY+Wo= github.com/muesli/termenv v0.15.2/go.mod h1:Epx+iuz8sNs7mNKhxzH4fWXGNpZwUaJKRS1noLXviQ8= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/noqcks/syft v0.0.0-20231012144435-aa2262d32557 h1:tIxmEmvbxchiGw/llyU7XJhtOZl7LdCTX0nIKO32N4I= -github.com/noqcks/syft v0.0.0-20231012144435-aa2262d32557/go.mod h1:JTwDULqhUlXmeOJXhbesxhY6zG2due9cefe0E01pneE= +github.com/noqcks/syft v0.0.0-20231107190905-9cd3f1bd08e2 h1:Fb07E7QFWDLDO0UBa1oTtz+lkn/uSQd/wtCZiath/Ss= +github.com/noqcks/syft v0.0.0-20231107190905-9cd3f1bd08e2/go.mod h1:JTwDULqhUlXmeOJXhbesxhY6zG2due9cefe0E01pneE= github.com/notaryproject/notation v1.0.0 h1:CJ17obUMRJOljApN8NCgYNmxfJQ878UrN0VbKACvDW0= github.com/notaryproject/notation v1.0.0/go.mod h1:BrPDyD390EOKkzLDS/3tEbg79wLIkNc0vCLfKHTd0Hw= github.com/notaryproject/notation-core-go v1.0.0 h1:FgOAihtFW4XU9JYyTzItg1xW3OaN4eCasw5Bp00Ydu4= diff --git a/internal/xeolio/source.go b/internal/xeolio/source.go index 00f08fca..23664744 100644 --- a/internal/xeolio/source.go +++ b/internal/xeolio/source.go @@ -33,6 +33,7 @@ type ImageSource struct { Type string ImageName string ImageDigest string + ImageLabels map[string]string } func NewImageSource(imageSource source.StereoscopeImageSourceMetadata) *ImageSource { @@ -40,6 +41,7 @@ func NewImageSource(imageSource source.StereoscopeImageSourceMetadata) *ImageSou Type: "ImageScheme", ImageName: imageSource.UserInput, ImageDigest: imageSource.ManifestDigest, + ImageLabels: imageSource.Labels, } } @@ -48,6 +50,7 @@ func (s *ImageSource) Serialize() map[string]interface{} { "Type": s.Type, "ImageName": s.ImageName, "ImageDigest": s.ImageDigest, + "ImageLabels": s.ImageLabels, } }