Skip to content

Commit 8243d55

Browse files
authored
BuildScan - Fix parse violations if requested to show (jfrog#422)
1 parent 290121a commit 8243d55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/results/output/resultwriter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (rw *ResultsWriter) createResultsConvertor(pretty bool) *conversion.Command
136136
IncludeLicenses: rw.commandResults.IncludesLicenses(),
137137
IncludeSbom: rw.commandResults.IncludeSbom(),
138138
IncludeVulnerabilities: rw.commandResults.IncludesVulnerabilities(),
139-
HasViolationContext: rw.commandResults.HasViolationContext(),
139+
HasViolationContext: rw.showViolations || rw.commandResults.HasViolationContext(),
140140
RequestedScans: rw.subScansPerformed,
141141
Pretty: pretty,
142142
})

0 commit comments

Comments
 (0)