Skip to content

Commit

Permalink
Merge pull request #162 from fosslight/develop
Browse files Browse the repository at this point in the history
Print TLSH, SHA1 to row from loaded yaml
  • Loading branch information
bjk7119 authored May 29, 2024
2 parents 9067043 + 363fc77 commit 77e7f63
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/fosslight_util/correct.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ def correct_with_yaml(correct_filepath, path_to_scan, scanner_oss_list):
if matched_oss_item.comment:
matched_oss_item.comment += '/'
matched_oss_item.comment += 'Loaded from sbom-info.yaml'

if sheet_name == 'BIN_FL_Binary':
matched_oss_item.bin_vulnerability = oss_item.bin_vulnerability
matched_oss_item.bin_tlsh = oss_item.bin_tlsh
matched_oss_item.bin_sha1 = oss_item.bin_sha1

matched_oss_array = matched_oss_item.get_print_array(scanner_name)[0]
correct_contents.append(matched_oss_array)
oss_item.exclude = True
Expand Down

0 comments on commit 77e7f63

Please sign in to comment.