Skip to content

Commit

Permalink
feat: extend sarif schema with policy property (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandor-trombitas authored Nov 25, 2024
2 parents c9b5159 + 8f84bbf commit c1be7d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sarif/sarif_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ type ResultProperties struct {
Type string `json:"type"`
} `json:"priorityScoreFactors"`
IsAutofixable bool `json:"isAutofixable"`
Policy struct {
OriginalLevel string `json:"originalLevel"`
OriginalSeverity string `json:"originalSeverity"`
Severity string `json:"severity"`
} `json:"snykPolicy/v1"`
}

type Result struct {
Expand Down

0 comments on commit c1be7d5

Please sign in to comment.