mirror of
https://github.com/securego/gosec.git
synced 2024-12-24 03:25:53 +00:00
ensure the sarif results are an empty array if nothing is reported
This commit is contained in:
parent
41ea431779
commit
327b2a0841
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue