@@ -83,6 +83,7 @@ def __init__(self, args):
83
83
self .load_project_data ()
84
84
else :
85
85
self .init_project_data (args )
86
+ self .serialize = args .serialize
86
87
87
88
def connect (self ):
88
89
self .client = Client (base_url = self .base_url , token = self .access_token , verify = self .no_verify , timeout = 60.0 , retries = 4 )
@@ -438,6 +439,8 @@ def scan_container_images(self):
438
439
detect_options = (f"--detect.parent.project.name={ parent_project } "
439
440
f"--detect.parent.project.version.name={ parent_version } "
440
441
f"--detect.project.version.nickname={ image_name } " )
442
+ if self .serialize :
443
+ detect_options += f" --detect.wait.for.results=true"
441
444
if self .individual_file_matching :
442
445
detect_options += f" --detect.blackduck.signature.scanner.individual.file.matching=ALL"
443
446
if clone_from :
@@ -531,6 +534,7 @@ def parse_command_args():
531
534
parser .add_argument ("--binary" , action = 'store_true' , help = "Use binary scan for analysis" )
532
535
parser .add_argument ("-ifm" , "--individual-file-matching" , action = 'store_true' , help = "Turn Individual file matching on" )
533
536
parser .add_argument ("--reprocess-run-file" , help = "Reprocess Failures from previous run report." )
537
+ parser .add_argument ("--serialize" , action = 'store_true' , help = "Serialize scan submissions by adding --detect.wait.for.results=true to scan invocations" )
534
538
args = parser .parse_args ()
535
539
if not args .reprocess_run_file and not (args .project_name and args .version_name ):
536
540
parser .error ("[ -p/--project-name and -pv/--version-name ] or --reprocess-run-file are required" )
0 commit comments