scanoss 1.26.1__py3-none-any.whl → 1.26.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- scanoss/__init__.py +1 -1
- scanoss/data/build_date.txt +1 -1
- scanoss/inspection/inspect_base.py +22 -5
- {scanoss-1.26.1.dist-info → scanoss-1.26.2.dist-info}/METADATA +1 -1
- {scanoss-1.26.1.dist-info → scanoss-1.26.2.dist-info}/RECORD +9 -9
- {scanoss-1.26.1.dist-info → scanoss-1.26.2.dist-info}/WHEEL +0 -0
- {scanoss-1.26.1.dist-info → scanoss-1.26.2.dist-info}/entry_points.txt +0 -0
- {scanoss-1.26.1.dist-info → scanoss-1.26.2.dist-info}/licenses/LICENSE +0 -0
- {scanoss-1.26.1.dist-info → scanoss-1.26.2.dist-info}/top_level.txt +0 -0
scanoss/__init__.py
CHANGED
scanoss/data/build_date.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
date:
|
|
1
|
+
date: 20250624181246, utime: 1750788766
|
|
@@ -393,14 +393,31 @@ class InspectBase(ScanossBase):
|
|
|
393
393
|
"""
|
|
394
394
|
component_licenses: dict = {}
|
|
395
395
|
for component in components:
|
|
396
|
-
|
|
397
|
-
|
|
396
|
+
purl = component.get('purl', '')
|
|
397
|
+
status = component.get('status', '')
|
|
398
|
+
licenses = component.get('licenses', [])
|
|
399
|
+
|
|
400
|
+
# Component without license
|
|
401
|
+
if not licenses:
|
|
402
|
+
key = f'{purl}-unknown'
|
|
403
|
+
component_licenses[key] = {
|
|
404
|
+
'purl': purl,
|
|
405
|
+
'spdxid': 'unknown',
|
|
406
|
+
'status': status,
|
|
407
|
+
'copyleft': False,
|
|
408
|
+
'url': '-',
|
|
409
|
+
}
|
|
410
|
+
continue
|
|
411
|
+
|
|
412
|
+
# Iterate over licenses component licenses
|
|
413
|
+
for lic in licenses:
|
|
414
|
+
spdxid = lic.get('spdxid', 'unknown')
|
|
398
415
|
if spdxid not in component_licenses:
|
|
399
|
-
key = f'{
|
|
416
|
+
key = f'{purl}-{spdxid}'
|
|
400
417
|
component_licenses[key] = {
|
|
401
|
-
'purl':
|
|
418
|
+
'purl': purl,
|
|
402
419
|
'spdxid': spdxid,
|
|
403
|
-
'status':
|
|
420
|
+
'status': status,
|
|
404
421
|
'copyleft': lic['copyleft'],
|
|
405
422
|
'url': lic['url'],
|
|
406
423
|
}
|
|
@@ -4,7 +4,7 @@ protoc_gen_swagger/options/annotations_pb2.py,sha256=b25EDD6gssUWnFby9gxgcpLIROT
|
|
|
4
4
|
protoc_gen_swagger/options/annotations_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
5
5
|
protoc_gen_swagger/options/openapiv2_pb2.py,sha256=vYElGp8E1vGHszvWqX97zNG9GFJ7u2QcdK9ouq0XdyI,14939
|
|
6
6
|
protoc_gen_swagger/options/openapiv2_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
7
|
-
scanoss/__init__.py,sha256=
|
|
7
|
+
scanoss/__init__.py,sha256=xDDQJcWC9AfGANHfK3qAJabNjabXJyODs8piC_PNc6U,1146
|
|
8
8
|
scanoss/cli.py,sha256=yjK4oawNzecarQYYlkElOiHFDDAZx_zKdSXf_gQvqXk,72678
|
|
9
9
|
scanoss/components.py,sha256=b0R9DdKuXqyQiw5nZZwjQ6NJXBr1U9gyx1RI2FP9ozA,14511
|
|
10
10
|
scanoss/constants.py,sha256=FWCZG8gQputKwV7XwvW1GuwDXL4wDLQyVRGdwygg578,320
|
|
@@ -57,14 +57,14 @@ scanoss/api/vulnerabilities/__init__.py,sha256=IFrDk_DTJgKSZmmU-nuLXuq_s8sQZlrSC
|
|
|
57
57
|
scanoss/api/vulnerabilities/v2/__init__.py,sha256=IFrDk_DTJgKSZmmU-nuLXuq_s8sQZlrSCHhIDMJT4r0,1122
|
|
58
58
|
scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py,sha256=CFhF80av8tenGvn9AIsGEtRJPuV2dC_syA5JLZb2lDw,5464
|
|
59
59
|
scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2_grpc.py,sha256=HlS4k4Zmx6RIAqaO9I96jD-eyF5yU6Xx04pVm7pdqOg,6864
|
|
60
|
-
scanoss/data/build_date.txt,sha256=
|
|
60
|
+
scanoss/data/build_date.txt,sha256=JZiS5Od8jOg1I9NAinAP5k79mVNoARNi3bvCVs5X7XU,40
|
|
61
61
|
scanoss/data/scanoss-settings-schema.json,sha256=ClkRYAkjAN0Sk704G8BE_Ok006oQ6YnIGmX84CF8h9w,8798
|
|
62
62
|
scanoss/data/spdx-exceptions.json,sha256=s7UTYxC7jqQXr11YBlIWYCNwN6lRDFTR33Y8rpN_dA4,17953
|
|
63
63
|
scanoss/data/spdx-licenses.json,sha256=A6Z0q82gaTLtnopBfzeIVZjJFxkdRW1g2TuumQc-lII,228794
|
|
64
64
|
scanoss/inspection/__init__.py,sha256=D4C0lWLuNp8k_BjQZEc07WZcUgAvriVwQWOk063b0ZU,1122
|
|
65
65
|
scanoss/inspection/component_summary.py,sha256=h1l3rF6NnoK0wMkS4ib6rDfcza2aqunyoMDbN2lw2G4,4049
|
|
66
66
|
scanoss/inspection/copyleft.py,sha256=iCArNWZo5TOX7K68e-YD_6mQNRDOE9V35UoSMs23_qY,9236
|
|
67
|
-
scanoss/inspection/inspect_base.py,sha256=
|
|
67
|
+
scanoss/inspection/inspect_base.py,sha256=wnE2KdATJFC2HqcPUTaKXUnM-3hBK0GZ98-wJE0VE-c,18170
|
|
68
68
|
scanoss/inspection/license_summary.py,sha256=T3I8E6ljqYF0ngIcY3Ke2WaNeCzrdpN0RQ02RG_3Thk,5763
|
|
69
69
|
scanoss/inspection/policy_check.py,sha256=NS39dvePZbpusGRnEUKN9JFiMdSyva0msFE6On6bK8Q,8329
|
|
70
70
|
scanoss/inspection/undeclared_component.py,sha256=qjc30agrIXU_07CJCgLvvFT-sQvJa1Hb0lS1UjM6aj8,11495
|
|
@@ -79,9 +79,9 @@ scanoss/utils/abstract_presenter.py,sha256=teiDTxBj5jBMCk2T8i4l1BJPf_u4zBLWrtCTF
|
|
|
79
79
|
scanoss/utils/crc64.py,sha256=TMrwQimSdE6imhFOUL7oAG6Kxu-8qMpGWMuMg8QpSVs,3169
|
|
80
80
|
scanoss/utils/file.py,sha256=62cA9a17TU9ZvfA3FY5HY4-QOajJeSrc8S6xLA_f-3M,2980
|
|
81
81
|
scanoss/utils/simhash.py,sha256=6iu8DOcecPAY36SZjCOzrrLMT9oIE7-gI6QuYwUQ7B0,5793
|
|
82
|
-
scanoss-1.26.
|
|
83
|
-
scanoss-1.26.
|
|
84
|
-
scanoss-1.26.
|
|
85
|
-
scanoss-1.26.
|
|
86
|
-
scanoss-1.26.
|
|
87
|
-
scanoss-1.26.
|
|
82
|
+
scanoss-1.26.2.dist-info/licenses/LICENSE,sha256=LLUaXoiyOroIbr5ubAyrxBOwSRLTm35ETO2FmLpy8QQ,1074
|
|
83
|
+
scanoss-1.26.2.dist-info/METADATA,sha256=ReKdCqWwRMsZl2IHLb2VpX7wxJPHfF4sXafR4uT94ak,6060
|
|
84
|
+
scanoss-1.26.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
85
|
+
scanoss-1.26.2.dist-info/entry_points.txt,sha256=Uy28xnaDL5KQ7V77sZD5VLDXPNxYYzSr5tsqtiXVzAs,48
|
|
86
|
+
scanoss-1.26.2.dist-info/top_level.txt,sha256=V11PrQ6Pnrc-nDF9xnisnJ8e6-i7HqSIKVNqduRWcL8,27
|
|
87
|
+
scanoss-1.26.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|