Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
eusebiu-constantin-petu-dbk committed Sep 10, 2021
1 parent f62b704 commit f4c208d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/extensions/search/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (r *queryResolver) ImageListWithCVEFixed(ctx context.Context, id string, im
for _, tag := range tagsInfo {
trivyConfig.TrivyConfig.Input = fmt.Sprintf("%s:%s", imagePath, tag.Name)

isValidImage, _ := r.cveInfo.IsValidImageFormat(fmt.Sprintf("%s:%s", image, tag))
isValidImage, _ := r.cveInfo.IsValidImageFormat(fmt.Sprintf("%s:%s", image, tag.Name))
if !isValidImage {
r.cveInfo.Log.Debug().Str("image",
image+":"+tag.Name).Msg("image media type not supported for scanning, adding as an infected image")
Expand Down

0 comments on commit f4c208d

Please sign in to comment.