Skip to content

Commit cb61999

Browse files
authored
feat: add Status and Guid properties to Suppression type (#92)
2 parents 2868c13 + d37191c commit cb61999

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

sarif/sarif_types.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,10 @@ type Run struct {
188188
}
189189

190190
type Suppression struct {
191+
Guid string `json:"guid"`
191192
Justification string `json:"justification"`
192193
Properties SuppressionProperties `json:"properties"`
194+
Status SuppresionStatus `json:"status"`
193195
}
194196

195197
type SuppressionProperties struct {
@@ -200,11 +202,15 @@ type SuppressionProperties struct {
200202
}
201203

202204
type Category string
205+
type SuppresionStatus string
203206

204207
const (
205-
WontFix Category = "wont-fix"
206-
NotVulnerable Category = "not-vulnerable"
207-
TemporaryIgnore Category = "temporary-ignore"
208+
WontFix Category = "wont-fix"
209+
NotVulnerable Category = "not-vulnerable"
210+
TemporaryIgnore Category = "temporary-ignore"
211+
UnderReview SuppresionStatus = "underReview"
212+
Accepted SuppresionStatus = "accepted"
213+
Rejected SuppresionStatus = "rejected"
208214
)
209215

210216
type IgnoredBy struct {

0 commit comments

Comments
 (0)