socketsecurity 1.0.24__tar.gz → 1.0.25__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.
- {socketsecurity-1.0.24/socketsecurity.egg-info → socketsecurity-1.0.25}/PKG-INFO +1 -1
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity/__init__.py +1 -1
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity/core/__init__.py +7 -7
- {socketsecurity-1.0.24 → socketsecurity-1.0.25/socketsecurity.egg-info}/PKG-INFO +1 -1
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/LICENSE +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/README.md +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/pyproject.toml +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/setup.cfg +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity/core/classes.py +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity/core/exceptions.py +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity/core/git_interface.py +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity/core/github.py +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity/core/gitlab.py +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity/core/issues.py +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity/core/licenses.py +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity/core/messages.py +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity/core/scm_comments.py +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity/socketcli.py +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity.egg-info/SOURCES.txt +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity.egg-info/dependency_links.txt +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity.egg-info/entry_points.txt +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity.egg-info/requires.txt +0 -0
- {socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity.egg-info/top_level.txt +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
__author__ = 'socket.dev'
|
|
2
|
-
__version__ = '1.0.
|
|
2
|
+
__version__ = '1.0.25'
|
|
@@ -163,9 +163,9 @@ def do_request(
|
|
|
163
163
|
'User-Agent': f'SocketPythonCLI/{__version__}',
|
|
164
164
|
"accept": "application/json"
|
|
165
165
|
}
|
|
166
|
-
verify =
|
|
166
|
+
verify = True
|
|
167
167
|
if allow_unverified_ssl:
|
|
168
|
-
verify =
|
|
168
|
+
verify = False
|
|
169
169
|
response = requests.request(
|
|
170
170
|
method.upper(),
|
|
171
171
|
url,
|
|
@@ -415,7 +415,7 @@ class Core:
|
|
|
415
415
|
"""
|
|
416
416
|
log.debug("Starting Find Files")
|
|
417
417
|
start_time = time.time()
|
|
418
|
-
files =
|
|
418
|
+
files = set()
|
|
419
419
|
for ecosystem in socket_globs:
|
|
420
420
|
patterns = socket_globs[ecosystem]
|
|
421
421
|
for file_name in patterns:
|
|
@@ -427,7 +427,7 @@ class Core:
|
|
|
427
427
|
glob_files = glob(file_path, recursive=True)
|
|
428
428
|
for glob_file in glob_files:
|
|
429
429
|
if glob_file not in files:
|
|
430
|
-
files.
|
|
430
|
+
files.add(glob_file)
|
|
431
431
|
glob_end = time.time()
|
|
432
432
|
glob_total_time = glob_end - glob_start
|
|
433
433
|
log.debug(f"Glob for pattern {file_path} took {glob_total_time:.2f} seconds")
|
|
@@ -436,7 +436,7 @@ class Core:
|
|
|
436
436
|
end_time = time.time()
|
|
437
437
|
total_time = end_time - start_time
|
|
438
438
|
log.info(f"Found {len(files)} in {total_time:.2f} seconds")
|
|
439
|
-
return files
|
|
439
|
+
return list(files)
|
|
440
440
|
|
|
441
441
|
@staticmethod
|
|
442
442
|
def create_full_scan(files: list, params: FullScanParams, workspace: str) -> FullScan:
|
|
@@ -594,13 +594,13 @@ class Core:
|
|
|
594
594
|
head_packages = Core.create_sbom_dict(head_scan)
|
|
595
595
|
new_scan_alerts = {}
|
|
596
596
|
head_scan_alerts = {}
|
|
597
|
-
consolidated =
|
|
597
|
+
consolidated = set()
|
|
598
598
|
for package_id in new_packages:
|
|
599
599
|
purl, package = Core.create_purl(package_id, new_packages)
|
|
600
600
|
base_purl = f"{purl.ecosystem}/{purl.name}@{purl.version}"
|
|
601
601
|
if package_id not in head_packages and package.direct and base_purl not in consolidated:
|
|
602
602
|
diff.new_packages.append(purl)
|
|
603
|
-
consolidated.
|
|
603
|
+
consolidated.add(base_purl)
|
|
604
604
|
new_scan_alerts = Core.create_issue_alerts(package, new_scan_alerts, new_packages)
|
|
605
605
|
for package_id in head_packages:
|
|
606
606
|
purl, package = Core.create_purl(package_id, head_packages)
|
|
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
|
{socketsecurity-1.0.24 → socketsecurity-1.0.25}/socketsecurity.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|