Skip to content

Commit

Permalink
Merge pull request #3473 from ActiveState/mitchell/dx-3036
Browse files Browse the repository at this point in the history
Do not output CVE report or prompt when in structured output mode.
  • Loading branch information
mitchell-as authored Sep 3, 2024
2 parents 1aedb1c + b06d58d commit ad73915
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/runbits/cves/cves.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ func (c *CveReport) shouldSkipReporting(changeset buildplan.ArtifactChangeset) b
return true
}

if c.prime.Output().Type().IsStructured() {
return true
}

return len(changeset.Added) == 0 && len(changeset.Updated) == 0
}

Expand Down

0 comments on commit ad73915

Please sign in to comment.