scanoss 1.19.3__py3-none-any.whl → 1.19.5__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/policy_check.py +2 -2
- scanoss/inspection/undeclared_component.py +2 -2
- {scanoss-1.19.3.dist-info → scanoss-1.19.5.dist-info}/METADATA +2 -2
- {scanoss-1.19.3.dist-info → scanoss-1.19.5.dist-info}/RECORD +10 -10
- {scanoss-1.19.3.dist-info → scanoss-1.19.5.dist-info}/WHEEL +1 -1
- {scanoss-1.19.3.dist-info → scanoss-1.19.5.dist-info}/LICENSE +0 -0
- {scanoss-1.19.3.dist-info → scanoss-1.19.5.dist-info}/entry_points.txt +0 -0
- {scanoss-1.19.3.dist-info → scanoss-1.19.5.dist-info}/top_level.txt +0 -0
scanoss/__init__.py
CHANGED
scanoss/data/build_date.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
date:
|
|
1
|
+
date: 20250115100233, utime: 1736935353
|
|
@@ -289,11 +289,11 @@ class PolicyCheck(ScanossBase):
|
|
|
289
289
|
self.print_stderr('ERROR: Header are no set')
|
|
290
290
|
return None
|
|
291
291
|
|
|
292
|
-
table_header = '|*' + col_sep.join(headers) + '
|
|
292
|
+
table_header = '|*' + col_sep.join(headers) + '*|\n'
|
|
293
293
|
table = table_header
|
|
294
294
|
for row in rows:
|
|
295
295
|
if len(headers) == len(row):
|
|
296
|
-
table += '|' + '|'.join(row) + '
|
|
296
|
+
table += '|' + '|'.join(row) + '|\n'
|
|
297
297
|
|
|
298
298
|
return table
|
|
299
299
|
|
|
@@ -82,11 +82,11 @@ class UndeclaredComponent(PolicyCheck):
|
|
|
82
82
|
if self.sbom_format == 'settings':
|
|
83
83
|
json_str = (json.dumps(self._generate_scanoss_file(components), indent=2).replace('\n', '\\n')
|
|
84
84
|
.replace('"', '\\"'))
|
|
85
|
-
return f'{len(components)} undeclared component(s) were found
|
|
85
|
+
return f'{len(components)} undeclared component(s) were found.\nAdd the following snippet into your `scanoss.json` file\n{{code:json}}\n{json.dumps(self._generate_scanoss_file(components), indent=2)}\n{{code}}\n'
|
|
86
86
|
else:
|
|
87
87
|
json_str = (json.dumps(self._generate_scanoss_file(components), indent=2).replace('\n', '\\n')
|
|
88
88
|
.replace('"', '\\"'))
|
|
89
|
-
return f'{len(components)} undeclared component(s) were found
|
|
89
|
+
return f'{len(components)} undeclared component(s) were found.\nAdd the following snippet into your `sbom.json` file\n{{code:json}}\n{json.dumps(self._generate_scanoss_file(components), indent=2)}\n{{code}}\n'
|
|
90
90
|
|
|
91
91
|
return f'{len(components)} undeclared component(s) were found.\\n'
|
|
92
92
|
|
|
@@ -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=ij90NBTyzIa-T9qnrk6hM4-mGPQ3ZmoNQPUBqaqJYOA,1163
|
|
8
8
|
scanoss/cli.py,sha256=eJB6s1DVKJd3FPO7wVea8ggeAfua_-7CC8I10uSmdDc,51509
|
|
9
9
|
scanoss/components.py,sha256=ZHZ1KA69shxOASZK7USD9yPTITpAc_RXL5q5zpDK23o,12590
|
|
10
10
|
scanoss/csvoutput.py,sha256=hBwr_Fc6mBdOdXgyQcdFrockYH-PJ0jblowlExJ6OPg,9925
|
|
@@ -51,20 +51,20 @@ scanoss/api/vulnerabilities/__init__.py,sha256=FLQtiDiv85Q1Chk-sJ9ky9WOV1mulZhEK
|
|
|
51
51
|
scanoss/api/vulnerabilities/v2/__init__.py,sha256=FLQtiDiv85Q1Chk-sJ9ky9WOV1mulZhEKjiBihlwiaM,1139
|
|
52
52
|
scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py,sha256=CFhF80av8tenGvn9AIsGEtRJPuV2dC_syA5JLZb2lDw,5464
|
|
53
53
|
scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2_grpc.py,sha256=HlS4k4Zmx6RIAqaO9I96jD-eyF5yU6Xx04pVm7pdqOg,6864
|
|
54
|
-
scanoss/data/build_date.txt,sha256=
|
|
54
|
+
scanoss/data/build_date.txt,sha256=cD2H2wGDDcDtyTea3nvPIpKA91zDg5EYQmQHMvg14CM,40
|
|
55
55
|
scanoss/data/scanoss-settings-schema.json,sha256=ClkRYAkjAN0Sk704G8BE_Ok006oQ6YnIGmX84CF8h9w,8798
|
|
56
56
|
scanoss/data/spdx-exceptions.json,sha256=s7UTYxC7jqQXr11YBlIWYCNwN6lRDFTR33Y8rpN_dA4,17953
|
|
57
57
|
scanoss/data/spdx-licenses.json,sha256=A6Z0q82gaTLtnopBfzeIVZjJFxkdRW1g2TuumQc-lII,228794
|
|
58
58
|
scanoss/inspection/__init__.py,sha256=z62680zKq4OmBOugSODvgpSwdsloZL7bvcaMbnx3xgU,1139
|
|
59
59
|
scanoss/inspection/copyleft.py,sha256=e6CQXL7G3kUwet4gNqMfGsi1XvLAS71OLDeoRuK2WGY,7621
|
|
60
|
-
scanoss/inspection/policy_check.py,sha256=
|
|
61
|
-
scanoss/inspection/undeclared_component.py,sha256=
|
|
60
|
+
scanoss/inspection/policy_check.py,sha256=mbtNwDydf2aBUCz9n2yNG6DV6rc7HH_ZaQuK2CSDBHw,15706
|
|
61
|
+
scanoss/inspection/undeclared_component.py,sha256=QvlBgYpytQhaWlVqrz3p8JPIGbsX8v8U59n-4Q2llLc,9951
|
|
62
62
|
scanoss/inspection/utils/license_utils.py,sha256=mIaoVWXMA6shkRQmgmiP2mWchjxX4ex8LWs91Nf6rq4,5093
|
|
63
63
|
scanoss/utils/__init__.py,sha256=0hjb5ktavp7utJzFhGMPImPaZiHWgilM2HwvTp5lXJE,1122
|
|
64
64
|
scanoss/utils/file.py,sha256=W-XFLgaTM_td31Y5rzd5DimO4_qXafQhBtKtY_p3JIQ,2184
|
|
65
|
-
scanoss-1.19.
|
|
66
|
-
scanoss-1.19.
|
|
67
|
-
scanoss-1.19.
|
|
68
|
-
scanoss-1.19.
|
|
69
|
-
scanoss-1.19.
|
|
70
|
-
scanoss-1.19.
|
|
65
|
+
scanoss-1.19.5.dist-info/LICENSE,sha256=LLUaXoiyOroIbr5ubAyrxBOwSRLTm35ETO2FmLpy8QQ,1074
|
|
66
|
+
scanoss-1.19.5.dist-info/METADATA,sha256=wW-1T7CwxhTVqjzRO1YqCmups_yoJ2F7_E0yEtk75mI,6019
|
|
67
|
+
scanoss-1.19.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
68
|
+
scanoss-1.19.5.dist-info/entry_points.txt,sha256=Uy28xnaDL5KQ7V77sZD5VLDXPNxYYzSr5tsqtiXVzAs,48
|
|
69
|
+
scanoss-1.19.5.dist-info/top_level.txt,sha256=V11PrQ6Pnrc-nDF9xnisnJ8e6-i7HqSIKVNqduRWcL8,27
|
|
70
|
+
scanoss-1.19.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|