@@ -91,7 +91,8 @@ def run_dependency(path_to_analyze, output_file_with_path, params=""):
9191def run_scanner (src_path , dep_arguments , output_path , keep_raw_data = False ,
9292 run_src = True , run_bin = True , run_dep = True , run_reuse = True ,
9393 remove_src_data = True , result_log = {}, output_file = "" ,
94- output_extension = "" , num_cores = - 1 , db_url = "" , default_oss_name = "" ):
94+ output_extension = "" , num_cores = - 1 , db_url = "" ,
95+ default_oss_name = "" , url = "" ):
9596 create_csv = False
9697 final_excel_dir = output_path
9798 success = True
@@ -159,7 +160,8 @@ def run_scanner(src_path, dep_arguments, output_path, keep_raw_data=False,
159160 output_file_without_ext = os .path .join (final_excel_dir , output_file )
160161 final_report = f"{ output_file_without_ext } { output_extension } "
161162 if remove_src_data :
162- overwrite_excel (_output_dir , default_oss_name )
163+ overwrite_excel (_output_dir , default_oss_name , "OSS Name" )
164+ overwrite_excel (_output_dir , url , "Download Location" )
163165 success , output_files = merge_excels (_output_dir , final_report , create_csv )
164166
165167 if success and output_files :
@@ -278,7 +280,8 @@ def run_main(mode, src_path, dep_arguments, output_file_or_dir, file_format, url
278280 run_scanner (src_path , dep_arguments , output_path , keep_raw_data ,
279281 run_src , run_bin , run_dep , run_reuse ,
280282 remove_downloaded_source , {}, output_file ,
281- output_extension , num_cores , db_url , default_oss_name )
283+ output_extension , num_cores , db_url ,
284+ default_oss_name , url_to_analyze )
282285
283286 except Exception as ex :
284287 logger .warning (str (ex ))
0 commit comments