add tags support for csv and sarif formats (#1176)

* add tags support for csv and sarif formats

* add tests
This commit is contained in:
eyalatox authored and GitHub committed 2023-06-15 07:16:23 -05:00
1 parent 3f894cbafc
commit 86197b0848
6 files changed
+22 -3

No files matched your search

+8
View File
@@ -104,6 +104,9 @@ func getResults(findings []Finding) []Results {
Date: f.Date,
Author: f.Author,
},
Properties: Properties{
Tags: f.Tags,
},
}
results = append(results, r)
}
@@ -203,11 +206,16 @@ type Locations struct {
PhysicalLocation PhysicalLocation `json:"physicalLocation"`
}
type Properties struct {
Tags []string `json:"tags"`
}
type Results struct {
Message Message `json:"message"`
RuleId string `json:"ruleId"`
Locations []Locations `json:"locations"`
PartialFingerPrints `json:"partialFingerprints"`
Properties Properties `json:"properties"`
}
type Runs struct {