diff --git a/output/formatter.go b/output/formatter.go index feedb07..5631b86 100644 --- a/output/formatter.go +++ b/output/formatter.go @@ -182,7 +182,7 @@ func convertToSarifReport(rootPaths []string, data *reportInfo) (*sarifReport, e var rules []*sarifRule var locations []*sarifLocation - var results []*sarifResult + results := []*sarifResult{} for index, issue := range data.Issues { rules = append(rules, buildSarifRule(issue))