Skip to content

Conversation

@tahiyasalam
Copy link
Member

No description provided.

@viambot viambot added the safe to test This pull request is marked safe to test from a trusted zone label Dec 15, 2025
Comment on lines +100 to +110
imgBytes, err := img.Bytes(ctx)
if err != nil {
return res, data.NewFailedToReadError(params.ComponentName, getImages.String(), err)
}
annotations := img.Annotations
annotations.Classifications = append(annotations.Classifications, data.Classification{Label: img.SourceName})
binaries = append(binaries, data.Binary{
Annotations: annotations,
Payload: imgBytes,
MimeType: data.MimeTypeStringToMimeType(img.MimeType()),
})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will it work if we extract this (basically the body of the for loop inside newGetImagesCollector to a helper function used by both?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test This pull request is marked safe to test from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants