@@ -353,6 +353,9 @@ def main(argv=None):
353
353
help = "strip scan directory from sbom evidence location paths and CVE paths (useful with a firmware dump)" ,
354
354
default = False ,
355
355
)
356
+ output_group .add_argument (
357
+ "--no-scan" , action = "store_true" , help = "No-Scan Mode" , default = False
358
+ )
356
359
vex_output_group = parser .add_argument_group (
357
360
"Vex Output" , "Arguments related to Vex output document."
358
361
)
@@ -1121,6 +1124,7 @@ def main(argv=None):
1121
1124
error_mode = error_mode ,
1122
1125
validate = not args ["disable_validation_check" ],
1123
1126
sources = enabled_sources ,
1127
+ no_scan = args ["no_scan" ],
1124
1128
)
1125
1129
version_scanner .remove_skiplist (skips )
1126
1130
LOGGER .info (f"Number of checkers: { version_scanner .number_of_checkers ()} " )
@@ -1137,19 +1141,24 @@ def main(argv=None):
1137
1141
for scan_info in version_scanner .recursive_scan (args ["directory" ]):
1138
1142
if scan_info :
1139
1143
product_info , path = scan_info
1140
- LOGGER .debug (f"{ product_info } : { path } " )
1144
+ LOGGER .debug (f"Product Info: { product_info } , Path : { path } " )
1141
1145
# add product_info to parsed_data to check for with vex file
1142
1146
if product_info in parsed_data :
1143
1147
# update the paths in triage_data with the new path
1144
1148
triage_data = parsed_data [product_info ]
1149
+ LOGGER .debug ("Product info in parsed data" )
1150
+ LOGGER .debug (f"Triage Data: { triage_data } " )
1145
1151
triage_data ["paths" ].add (path )
1146
1152
else :
1147
1153
# create a new entry if product_info not in parsed_data
1154
+ LOGGER .debug ("Product info not in parsed data" )
1148
1155
triage_data = {"default" : {}, "paths" : {path }}
1156
+ LOGGER .debug (f"Triage Data: { triage_data } " )
1149
1157
parsed_data [product_info ] = triage_data
1150
1158
1151
1159
cve_scanner .get_cves (product_info , triage_data )
1152
1160
total_files = version_scanner .total_scanned_files
1161
+ LOGGER .info (f"Total files: { total_files } " )
1153
1162
1154
1163
if args ["merge" ]:
1155
1164
cve_scanner = merge_cve_scanner
0 commit comments