From 1cdec676fe515f87d277e622cbf25ce68711e284 Mon Sep 17 00:00:00 2001 From: Wonjae Park Date: Thu, 10 Jul 2025 11:00:33 +0900 Subject: [PATCH 1/2] Remove copyright from SCANOSS result Signed-off-by: Wonjae Park --- src/fosslight_source/_parsing_scanoss_file.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/fosslight_source/_parsing_scanoss_file.py b/src/fosslight_source/_parsing_scanoss_file.py index 1ef93ff9..4a2b42aa 100644 --- a/src/fosslight_source/_parsing_scanoss_file.py +++ b/src/fosslight_source/_parsing_scanoss_file.py @@ -60,7 +60,6 @@ def parsing_scanResult(scanoss_report: dict, path_to_scan: str = "", path_to_exc license_detected = [] license_w_source = {"component_declared": [], "file_spdx_tag": [], "file_header": [], "license_file": [], "scancode": []} - copyright_detected = [] if 'licenses' in findings[0]: for license in findings[0]['licenses']: @@ -78,11 +77,6 @@ def parsing_scanResult(scanoss_report: dict, path_to_scan: str = "", path_to_exc if len(license_detected) > 0: result_item.licenses = license_detected result_item.scanoss_reference = license_w_source - if 'copyrights' in findings[0]: - for copyright in findings[0]['copyrights']: - copyright_detected.append(copyright['name']) - if len(copyright_detected) > 0: - result_item.copyright = copyright_detected if is_exclude_file(file_path): result_item.exclude = True From 8952681e1ef11d6d41a1d4cfd8247327f14e3bd2 Mon Sep 17 00:00:00 2001 From: Wonjae Park Date: Thu, 10 Jul 2025 16:59:54 +0900 Subject: [PATCH 2/2] fix Signed-off-by: Wonjae Park --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 896725dc..ee4b9853 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ pyparsing -scanoss>=1.18.0 +scanoss>=1.18.0,<=1.26.3 XlsxWriter fosslight_util>=2.1.10 PyYAML