Skip to content

Commit

Permalink
remove cwe from sarifMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturRibeiro-CX committed Jan 9, 2024
1 parent 4a6ffda commit ca788e3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion pkg/report/model/sarif.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 0 additions & 3 deletions pkg/report/model/sarif_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ var sarifTests = []sarifTest{
ResultMessage: sarifMessage{
Text: "test",
MessageProperties: sarifProperties{"platform": "", "cwe": ""},
CWE: "",
},
ResultLocations: []sarifLocation{
{
Expand All @@ -214,7 +213,6 @@ var sarifTests = []sarifTest{
ResultMessage: sarifMessage{
Text: "test",
MessageProperties: sarifProperties{"platform": "", "cwe": ""},
CWE: "",
},
ResultLocations: []sarifLocation{
{
Expand All @@ -232,7 +230,6 @@ var sarifTests = []sarifTest{
ResultMessage: sarifMessage{
Text: "test",
MessageProperties: sarifProperties{"platform": "", "cwe": ""},
CWE: "",
},
ResultLocations: []sarifLocation{
{
Expand Down

0 comments on commit ca788e3

Please sign in to comment.