We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14658d7 commit 3cdee94Copy full SHA for 3cdee94
1 file changed
utils/sarif.go
@@ -43,9 +43,18 @@ type Driver struct {
43
}
44
45
type Rule struct {
46
- ID string `json:"id"`
47
- ShortDescription MessageText `json:"shortDescription"`
48
- Properties map[string]interface{} `json:"properties"`
+ ID string `json:"id"`
+ ShortDescription MessageText `json:"shortDescription"`
+ Properties RuleProperties `json:"properties"`
49
+}
50
+
51
+type RuleProperties struct {
52
+ Priority int `json:"priority,omitempty"`
53
+ Ruleset string `json:"ruleset,omitempty"`
54
+ Tags []string `json:"tags,omitempty"`
55
+ // Add other common properties that might be present
56
+ Precision string `json:"precision,omitempty"`
57
+ SecuritySeverity string `json:"security-severity,omitempty"`
58
59
60
type Result struct {
0 commit comments