Skip to content

Commit 357e9d1

Browse files
fix: warn if output file specified without vuln report (#942)
Signed-off-by: robert-cronin <robert.owen.cronin@gmail.com>
1 parent 14ae316 commit 357e9d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/patch/patch.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ func removeIfNotDebug(workingFolder string) {
7575
}
7676

7777
func patchWithContext(ctx context.Context, ch chan error, image, reportFile, patchedTag, workingFolder, scanner, format, output string, ignoreError bool, bkOpts buildkit.Opts) error {
78+
if reportFile == "" && output != "" {
79+
log.Warn("No vulnerability report was provided, so no VEX output will be generated.")
80+
}
81+
7882
imageName, err := reference.ParseNormalizedNamed(image)
7983
if err != nil {
8084
return err

0 commit comments

Comments
 (0)