Skip to content

Commit 05b5e11

Browse files
committed
feat(sbom): print warnings when print sbom only
1 parent 3e034e6 commit 05b5e11

File tree

1 file changed

+3
-0
lines changed
  • cmd/murphy/internal/scan

1 file changed

+3
-0
lines changed

cmd/murphy/internal/scan/cmd.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ func envScanRun(cmd *cobra.Command, args []string) {
230230
if e != nil {
231231
exitcode.Set(1)
232232
}
233+
for _, it := range scanerr.GetAll(ctx) {
234+
fmt.Printf("scan warning: %s\n", it.Kind)
235+
}
233236
doSBOMOnlyPrint(ctx, r)
234237
return
235238
} else {

0 commit comments

Comments
 (0)