File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ function run() {
291291 continue ;
292292 }
293293 const status_data = yield status_response . json ( ) ;
294- const scan_status = status_data . status || status_data . static_scan . status ;
294+ const scan_status = status_data . static_scan . status || status_data . status ;
295295 if ( scan_status &&
296296 [ "FAILED" , "SCAN_ATTEMPT_ERROR" , "CANCELLED" ] . includes ( scan_status ) ) {
297297 console . log ( `Scan ${ scan_id } failed, skipping vulnerability check` ) ;
Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ async function run() {
363363 }
364364
365365 const status_data = await status_response . json ( ) ;
366- const scan_status = status_data . status || status_data . static_scan . status ;
366+ const scan_status = status_data . static_scan . status || status_data . status ;
367367 if (
368368 scan_status &&
369369 [ "FAILED" , "SCAN_ATTEMPT_ERROR" , "CANCELLED" ] . includes ( scan_status )
You can’t perform that action at this time.
0 commit comments