We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 290121a commit 8243d55Copy full SHA for 8243d55
utils/results/output/resultwriter.go
@@ -136,7 +136,7 @@ func (rw *ResultsWriter) createResultsConvertor(pretty bool) *conversion.Command
136
IncludeLicenses: rw.commandResults.IncludesLicenses(),
137
IncludeSbom: rw.commandResults.IncludeSbom(),
138
IncludeVulnerabilities: rw.commandResults.IncludesVulnerabilities(),
139
- HasViolationContext: rw.commandResults.HasViolationContext(),
+ HasViolationContext: rw.showViolations || rw.commandResults.HasViolationContext(),
140
RequestedScans: rw.subScansPerformed,
141
Pretty: pretty,
142
})
0 commit comments