From ca788e3acdeb1b8a73bdd97f70110a0245f272d2 Mon Sep 17 00:00:00 2001 From: Artur Ribeiro Date: Tue, 9 Jan 2024 17:30:10 +0000 Subject: [PATCH] remove cwe from sarifMessage --- pkg/report/model/sarif.go | 1 - pkg/report/model/sarif_test.go | 3 --- 2 files changed, 4 deletions(-) diff --git a/pkg/report/model/sarif.go b/pkg/report/model/sarif.go index 5cebe872b4a..b28fa3f2eb0 100644 --- a/pkg/report/model/sarif.go +++ b/pkg/report/model/sarif.go @@ -43,7 +43,6 @@ type ruleCISMetadata struct { type sarifMessage struct { Text string `json:"text"` MessageProperties sarifProperties `json:"properties,omitempty"` - CWE string `json:"cwe,omitempty"` } type sarifComponentReference struct { diff --git a/pkg/report/model/sarif_test.go b/pkg/report/model/sarif_test.go index d6443b7df02..b4618d3cfd1 100644 --- a/pkg/report/model/sarif_test.go +++ b/pkg/report/model/sarif_test.go @@ -196,7 +196,6 @@ var sarifTests = []sarifTest{ ResultMessage: sarifMessage{ Text: "test", MessageProperties: sarifProperties{"platform": "", "cwe": ""}, - CWE: "", }, ResultLocations: []sarifLocation{ { @@ -214,7 +213,6 @@ var sarifTests = []sarifTest{ ResultMessage: sarifMessage{ Text: "test", MessageProperties: sarifProperties{"platform": "", "cwe": ""}, - CWE: "", }, ResultLocations: []sarifLocation{ { @@ -232,7 +230,6 @@ var sarifTests = []sarifTest{ ResultMessage: sarifMessage{ Text: "test", MessageProperties: sarifProperties{"platform": "", "cwe": ""}, - CWE: "", }, ResultLocations: []sarifLocation{ {