File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ async function processPolicyFlaws(options, flawData) {
141141 // walk through the list of flaws in the input file
142142 console . log ( `Processing input file: \"${ options . resultsFile } \" with ${ flawData . _embedded . findings . length } flaws to process.` )
143143 var index ;
144+ var mitigatedCount = 0 ;
144145 for ( index = 0 ; index < flawData . _embedded . findings . length ; index ++ ) {
145146 let flaw = flawData . _embedded . findings [ index ] ;
146147 let vid = createVeracodeFlawID ( flaw ) ;
@@ -151,6 +152,7 @@ async function processPolicyFlaws(options, flawData) {
151152 // check for mitigation
152153 if ( flaw . finding_status . resolution_status == 'APPROVED' ) {
153154 console . log ( 'Flaw mitigated, skipping import' ) ;
155+ mitigatedCount ++ ;
154156 continue ;
155157 }
156158
@@ -372,7 +374,7 @@ old rewrite path */
372374 await util . sleep ( waitTime * 1000 ) ;
373375 }
374376
375- return index ;
377+ return index - mitigatedCount ;
376378}
377379
378380module . exports = { processPolicyFlaws }
You can’t perform that action at this time.
0 commit comments