scanoss 1.19.3__tar.gz → 1.19.4__tar.gz
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-1.19.3/src/scanoss.egg-info → scanoss-1.19.4}/PKG-INFO +1 -1
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/__init__.py +1 -1
- scanoss-1.19.4/src/scanoss/data/build_date.txt +1 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/inspection/policy_check.py +2 -2
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/inspection/undeclared_component.py +2 -2
- {scanoss-1.19.3 → scanoss-1.19.4/src/scanoss.egg-info}/PKG-INFO +1 -1
- {scanoss-1.19.3 → scanoss-1.19.4}/tests/test_policy_inspect.py +37 -3
- scanoss-1.19.3/src/scanoss/data/build_date.txt +0 -1
- {scanoss-1.19.3 → scanoss-1.19.4}/LICENSE +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/PACKAGE.md +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/README.md +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/pyproject.toml +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/setup.cfg +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/protoc_gen_swagger/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/protoc_gen_swagger/options/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/protoc_gen_swagger/options/annotations_pb2.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/protoc_gen_swagger/options/annotations_pb2_grpc.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/protoc_gen_swagger/options/openapiv2_pb2.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/protoc_gen_swagger/options/openapiv2_pb2_grpc.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/common/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/common/v2/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/common/v2/scanoss_common_pb2.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/common/v2/scanoss_common_pb2_grpc.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/components/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/components/v2/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/components/v2/scanoss_components_pb2.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/components/v2/scanoss_components_pb2_grpc.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/cryptography/v2/scanoss_cryptography_pb2.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/cryptography/v2/scanoss_cryptography_pb2_grpc.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/dependencies/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/dependencies/v2/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/dependencies/v2/scanoss_dependencies_pb2.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/dependencies/v2/scanoss_dependencies_pb2_grpc.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/scanning/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/scanning/v2/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/scanning/v2/scanoss_scanning_pb2.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/scanning/v2/scanoss_scanning_pb2_grpc.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/semgrep/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/semgrep/v2/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/semgrep/v2/scanoss_semgrep_pb2.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/semgrep/v2/scanoss_semgrep_pb2_grpc.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/vulnerabilities/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/vulnerabilities/v2/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2_grpc.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/cli.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/components.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/csvoutput.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/cyclonedx.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/data/scanoss-settings-schema.json +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/data/spdx-exceptions.json +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/data/spdx-licenses.json +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/file_filters.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/filecount.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/inspection/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/inspection/copyleft.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/inspection/utils/license_utils.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/results.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/scancodedeps.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/scanner.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/scanoss_settings.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/scanossapi.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/scanossbase.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/scanossgrpc.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/scanpostprocessor.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/scantype.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/spdxlite.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/threadeddependencies.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/threadedscanning.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/utils/__init__.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/utils/file.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/winnowing.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss.egg-info/SOURCES.txt +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss.egg-info/dependency_links.txt +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss.egg-info/entry_points.txt +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss.egg-info/requires.txt +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss.egg-info/top_level.txt +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/tests/test_csv_output.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/tests/test_file_filters.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/tests/test_scan_post_processor.py +0 -0
- {scanoss-1.19.3 → scanoss-1.19.4}/tests/test_winnowing.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
date: 20250108144949, utime: 1736347789
|
|
@@ -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
|
|
|
@@ -340,8 +340,36 @@ class MyTestCase(unittest.TestCase):
|
|
|
340
340
|
status, results = undeclared.run()
|
|
341
341
|
details = results['details']
|
|
342
342
|
summary = results['summary']
|
|
343
|
-
expected_details_output = "|*Component*|*Version*|*License
|
|
344
|
-
|
|
343
|
+
expected_details_output = """|*Component*|*Version*|*License*|
|
|
344
|
+
|pkg:github/scanoss/scanner.c|1.3.3|BSD-2-Clause - GPL-2.0-only|
|
|
345
|
+
|pkg:github/scanoss/scanner.c|1.1.4|GPL-2.0-only|
|
|
346
|
+
|pkg:github/scanoss/wfp|6afc1f6|Zlib - GPL-2.0-only|
|
|
347
|
+
|pkg:npm/%40electron/rebuild|3.7.0|MIT|
|
|
348
|
+
|pkg:npm/%40emotion/react|11.13.3|MIT|
|
|
349
|
+
"""
|
|
350
|
+
expected_summary_output = """5 undeclared component(s) were found.
|
|
351
|
+
Add the following snippet into your `scanoss.json` file
|
|
352
|
+
{code:json}
|
|
353
|
+
{
|
|
354
|
+
"bom": {
|
|
355
|
+
"include": [
|
|
356
|
+
{
|
|
357
|
+
"purl": "pkg:github/scanoss/scanner.c"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"purl": "pkg:github/scanoss/wfp"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"purl": "pkg:npm/%40electron/rebuild"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"purl": "pkg:npm/%40emotion/react"
|
|
367
|
+
}
|
|
368
|
+
]
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
{code}
|
|
372
|
+
"""
|
|
345
373
|
self.assertEqual(status, 0)
|
|
346
374
|
self.assertEqual(expected_details_output, details)
|
|
347
375
|
self.assertEqual(summary, expected_summary_output)
|
|
@@ -353,7 +381,13 @@ class MyTestCase(unittest.TestCase):
|
|
|
353
381
|
copyleft = Copyleft(filepath=input_file_name, format_type='jira_md')
|
|
354
382
|
status, results = copyleft.run()
|
|
355
383
|
details = results['details']
|
|
356
|
-
expected_details_output =
|
|
384
|
+
expected_details_output = """|*Component*|*Version*|*License*|*URL*|*Copyleft*|
|
|
385
|
+
|pkg:github/scanoss/scanner.c|1.3.3|GPL-2.0-only|https://spdx.org/licenses/GPL-2.0-only.html|YES|
|
|
386
|
+
|pkg:github/scanoss/scanner.c|1.1.4|GPL-2.0-only|https://spdx.org/licenses/GPL-2.0-only.html|YES|
|
|
387
|
+
|pkg:github/scanoss/engine|5.4.0|GPL-2.0-only|https://spdx.org/licenses/GPL-2.0-only.html|YES|
|
|
388
|
+
|pkg:github/scanoss/wfp|6afc1f6|GPL-2.0-only|https://spdx.org/licenses/GPL-2.0-only.html|YES|
|
|
389
|
+
|pkg:github/scanoss/engine|4.0.4|GPL-2.0-only|https://spdx.org/licenses/GPL-2.0-only.html|YES|
|
|
390
|
+
"""
|
|
357
391
|
self.assertEqual(status, 0)
|
|
358
392
|
self.assertEqual(expected_details_output, details)
|
|
359
393
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
date: 20250107150934, utime: 1736262574
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/components/v2/scanoss_components_pb2_grpc.py
RENAMED
|
File without changes
|
{scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/cryptography/v2/scanoss_cryptography_pb2.py
RENAMED
|
File without changes
|
{scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/cryptography/v2/scanoss_cryptography_pb2_grpc.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/dependencies/v2/scanoss_dependencies_pb2.py
RENAMED
|
File without changes
|
{scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/dependencies/v2/scanoss_dependencies_pb2_grpc.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scanoss-1.19.3 → scanoss-1.19.4}/src/scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|