diff --git a/contrib/analyze-local-images/main.go b/contrib/analyze-local-images/main.go index a82c6c1b..04db181a 100644 --- a/contrib/analyze-local-images/main.go +++ b/contrib/analyze-local-images/main.go @@ -135,8 +135,6 @@ func main() { isSafe := true for _, feature := range layer.Features { - fmt.Printf("## Feature: %s %s (%s)\n", feature.Name, feature.Version, feature.NamespaceName) - if len(feature.Vulnerabilities) > 0 { isFirstVulnerability := true @@ -148,6 +146,8 @@ func main() { if isFirstVulnerability { isSafe = false isFirstVulnerability = false + + fmt.Printf("## Feature: %s %s (%s)\n", feature.Name, feature.Version, feature.NamespaceName) fmt.Printf(" - Added by layer: %s\n", feature.AddedBy) }