Skip to content

Commit 8f84bbf

Browse files
feat: extend sarif schema with policy property
1 parent cca06eb commit 8f84bbf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sarif/sarif_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ type ResultProperties struct {
9696
Type string `json:"type"`
9797
} `json:"priorityScoreFactors"`
9898
IsAutofixable bool `json:"isAutofixable"`
99+
Policy struct {
100+
OriginalLevel string `json:"originalLevel"`
101+
OriginalSeverity string `json:"originalSeverity"`
102+
Severity string `json:"severity"`
103+
} `json:"snykPolicy/v1"`
99104
}
100105

101106
type Result struct {

0 commit comments

Comments
 (0)