Skip to content

Commit

Permalink
make AddXrayLicenseViolationToSarifRun public
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Nov 14, 2023
1 parent 2ea5c79 commit 58f1a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xray/utils/resultwriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func extractXrayIssuesToSarifRun(run *sarif.Run, xrayJson formats.SimpleJsonResu
}
}
for _, license := range xrayJson.LicensesViolations {
if err := addXrayLicenseViolationToSarifRun(license, run); err != nil {
if err := AddXrayLicenseViolationToSarifRun(license, run); err != nil {
return err
}
}
Expand Down Expand Up @@ -268,7 +268,7 @@ func addXrayCveIssueToSarifRun(issue formats.VulnerabilityOrViolationRow, run *s
return
}

func addXrayLicenseViolationToSarifRun(license formats.LicenseRow, run *sarif.Run) (err error) {
func AddXrayLicenseViolationToSarifRun(license formats.LicenseRow, run *sarif.Run) (err error) {
formattedDirectDependencies, err := getDirectDependenciesFormatted(license.Components)
if err != nil {
return
Expand Down

0 comments on commit 58f1a75

Please sign in to comment.