@@ -160,9 +160,9 @@ func (sjc *CmdResultsSimpleJsonConverter) ParseSast(_ results.ScanTarget, isViol
160160 return
161161}
162162
163- func PrepareSimpleJsonViolations (target results.ScanTarget , scaResponse services.ScanResponse , pretty , jasEntitled bool , applicabilityRuns ... * sarif.Run ) ([]formats.VulnerabilityOrViolationRow , []formats.LicenseRow , []formats.OperationalRiskViolationRow , error ) {
163+ func PrepareSimpleJsonViolations (target results.ScanTarget , scaResponse services.ScanResponse , pretty , jasEntitled bool , applicabilityRuns ... * sarif.Run ) ([]formats.VulnerabilityOrViolationRow , []formats.LicenseViolationRow , []formats.OperationalRiskViolationRow , error ) {
164164 var securityViolationsRows []formats.VulnerabilityOrViolationRow
165- var licenseViolationsRows []formats.LicenseRow
165+ var licenseViolationsRows []formats.LicenseViolationRow
166166 var operationalRiskViolationsRows []formats.OperationalRiskViolationRow
167167 _ , _ , err := results .PrepareScaViolations (
168168 target ,
@@ -241,17 +241,21 @@ func addSimpleJsonSecurityViolation(securityViolationsRows *[]formats.Vulnerabil
241241 }
242242}
243243
244- func addSimpleJsonLicenseViolation (licenseViolationsRows * []formats.LicenseRow , pretty bool ) results.ParseScaViolationFunc {
244+ func addSimpleJsonLicenseViolation (licenseViolationsRows * []formats.LicenseViolationRow , pretty bool ) results.ParseScaViolationFunc {
245245 return func (violation services.Violation , cves []formats.CveRow , applicabilityStatus jasutils.ApplicabilityStatus , severity severityutils.Severity , impactedPackagesName , impactedPackagesVersion , impactedPackagesType string , fixedVersion []string , directComponents []formats.ComponentRow , impactPaths [][]formats.ComponentRow ) error {
246246 * licenseViolationsRows = append (* licenseViolationsRows ,
247- formats.LicenseRow {
248- LicenseKey : getLicenseKey (violation .LicenseKey , violation .IssueId ),
249- ImpactedDependencyDetails : formats.ImpactedDependencyDetails {
250- SeverityDetails : severityutils .GetAsDetails (severity , applicabilityStatus , pretty ),
251- ImpactedDependencyName : impactedPackagesName ,
252- ImpactedDependencyVersion : impactedPackagesVersion ,
253- ImpactedDependencyType : impactedPackagesType ,
254- Components : directComponents ,
247+ formats.LicenseViolationRow {
248+ Watch : violation .WatchName ,
249+ LicenseRow : formats.LicenseRow {
250+ LicenseKey : getLicenseKey (violation .LicenseKey , violation .IssueId ),
251+ LicenseName : violation .LicenseName ,
252+ ImpactedDependencyDetails : formats.ImpactedDependencyDetails {
253+ SeverityDetails : severityutils .GetAsDetails (severity , applicabilityStatus , pretty ),
254+ ImpactedDependencyName : impactedPackagesName ,
255+ ImpactedDependencyVersion : impactedPackagesVersion ,
256+ ImpactedDependencyType : impactedPackagesType ,
257+ Components : directComponents ,
258+ },
255259 },
256260 },
257261 )
0 commit comments