diff --git a/requirements.txt b/requirements.txt index 896725d..ee4b985 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 diff --git a/src/fosslight_source/_parsing_scanoss_file.py b/src/fosslight_source/_parsing_scanoss_file.py index 1ef93ff..4a2b42a 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