Skip to content

Commit 855d3fb

Browse files
authored
fix: root file path of vulnerable component is missing (#3088)
Signed-off-by: Pramurta Sinha <[email protected]>
1 parent 0512ba3 commit 855d3fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cve_bin_tool/version_scanner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ def scan_file(self, filename: str) -> Iterator[ScanInfo]:
226226
for file in list(valid_files.keys()):
227227
valid_file = valid_file | (file in output)
228228
if valid_file:
229-
yield from parse(filename, output, self.cve_db, self.logger)
229+
for scan_info in parse(filename, output, self.cve_db, self.logger):
230+
yield ScanInfo(scan_info.product_info, "".join(self.file_stack))
230231

231232
yield from self.run_checkers(filename, lines)
232233

0 commit comments

Comments
 (0)