File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import {
31
31
getSelf ,
32
32
} from './unmanaged/utils' ;
33
33
import { sleep } from '../common' ;
34
+ import { SEVERITY } from '../snyk-test/common' ;
34
35
35
36
export async function resolveAndTestFacts (
36
37
ecosystem : Ecosystem ,
@@ -91,13 +92,15 @@ async function fetchIssues(
91
92
start_time ,
92
93
dep_graph_data ,
93
94
component_details ,
95
+ target_severity : SEVERITY ,
94
96
orgId : string ,
95
97
) {
96
98
const response : GetIssuesResponse = await getIssues (
97
99
{
98
100
dep_graph : dep_graph_data ,
99
101
start_time,
100
102
component_details,
103
+ target_severity,
101
104
} ,
102
105
orgId ,
103
106
) ;
@@ -148,6 +151,7 @@ export async function resolveAndTestFactsUnmanagedDeps(
148
151
const displayTargetFile = '' ;
149
152
150
153
let orgId = options . org || '' ;
154
+ const target_severity : SEVERITY = options . severityThreshold || SEVERITY . LOW ;
151
155
152
156
if ( orgId === '' ) {
153
157
const self = await getSelf ( ) ;
@@ -181,6 +185,7 @@ export async function resolveAndTestFactsUnmanagedDeps(
181
185
start_time ,
182
186
dep_graph_data ,
183
187
component_details ,
188
+ target_severity ,
184
189
orgId ,
185
190
) ;
186
191
Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ export interface IssuesRequestAttributes {
163
163
start_time : number ;
164
164
dep_graph : IssuesRequestDepGraphDataOpenAPI ;
165
165
component_details : IssuesRequestComponentDetails ;
166
+ target_severity : SEVERITY ;
166
167
}
167
168
168
169
export interface Data {
You can’t perform that action at this time.
0 commit comments