File tree 4 files changed +11
-4
lines changed
4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ type Pattern struct {
5
5
ID string `json:"patternId"`
6
6
Category string `json:"category,omitempty"`
7
7
SubCategory string `json:"subcategory,omitempty"`
8
+ ScanType string `json:"scanType,omitempty"`
8
9
Level string `json:"level,omitempty"`
9
10
Parameters []PatternParameter `json:"parameters,omitempty"`
10
11
Languages []string `json:"languages,omitempty"`
Original file line number Diff line number Diff line change 11
11
"default" : " nofunc"
12
12
}
13
13
],
14
- "level" : " Warning"
14
+ "level" : " Warning" ,
15
+ "scanType" : " SAST"
15
16
}
16
17
]
17
18
}
Original file line number Diff line number Diff line change 5
5
{
6
6
"patternId" : " secret" ,
7
7
"category" : " Security" ,
8
+ "subCategory" : " Cryptography" ,
9
+ "scanType" : " Secrets" ,
8
10
"level" : " Critical"
9
11
}
10
12
]
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ func TestNewToolExecution(t *testing.T) {
23
23
{
24
24
ID : "foo" ,
25
25
Category : "ErrorProne" ,
26
+ ScanType : "SAST" ,
26
27
Level : "Warning" ,
27
28
Parameters : []PatternParameter {
28
29
{
@@ -87,9 +88,11 @@ func TestNewToolExecution_NoMatchingToolConfigured(t *testing.T) {
87
88
Version : "1.0.0" ,
88
89
Patterns : & []Pattern {
89
90
{
90
- ID : "secret" ,
91
- Category : "Security" ,
92
- Level : "Critical" ,
91
+ ID : "secret" ,
92
+ Category : "Security" ,
93
+ Level : "Critical" ,
94
+ SubCategory : "Cryptography" ,
95
+ ScanType : "Secrets" ,
93
96
},
94
97
},
95
98
},
You can’t perform that action at this time.
0 commit comments