socketsecurity 1.0.14__tar.gz → 1.0.15__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.14/socketsecurity.egg-info → socketsecurity-1.0.15}/PKG-INFO +1 -1
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/socketsecurity/__init__.py +1 -1
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/socketsecurity/core/__init__.py +19 -20
- {socketsecurity-1.0.14 → socketsecurity-1.0.15/socketsecurity.egg-info}/PKG-INFO +1 -1
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/LICENSE +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/README.md +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/pyproject.toml +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/setup.cfg +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/socketsecurity/core/classes.py +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/socketsecurity/core/exceptions.py +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/socketsecurity/core/git_interface.py +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/socketsecurity/core/github.py +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/socketsecurity/core/gitlab.py +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/socketsecurity/core/issues.py +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/socketsecurity/core/licenses.py +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/socketsecurity/core/messages.py +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/socketsecurity/core/scm_comments.py +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/socketsecurity/socketcli.py +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/socketsecurity.egg-info/SOURCES.txt +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/socketsecurity.egg-info/dependency_links.txt +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/socketsecurity.egg-info/entry_points.txt +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/socketsecurity.egg-info/requires.txt +0 -0
- {socketsecurity-1.0.14 → socketsecurity-1.0.15}/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.15'
|
|
@@ -398,13 +398,14 @@ class Core:
|
|
|
398
398
|
:param files: override finding the manifest files using the glob matcher
|
|
399
399
|
:return:
|
|
400
400
|
"""
|
|
401
|
-
all_files = set()
|
|
402
401
|
files_provided = False
|
|
403
402
|
log.debug("Starting Find Files")
|
|
404
403
|
start_time = time.time()
|
|
405
404
|
if files is not None and len(files) > 0:
|
|
406
405
|
files_provided = True
|
|
407
406
|
for ecosystem in socket_globs:
|
|
407
|
+
if files is None:
|
|
408
|
+
files = []
|
|
408
409
|
patterns = socket_globs[ecosystem]
|
|
409
410
|
for file_name in patterns:
|
|
410
411
|
pattern = patterns[file_name]["pattern"]
|
|
@@ -413,33 +414,19 @@ class Core:
|
|
|
413
414
|
if not files_provided:
|
|
414
415
|
log.debug(f"Globbing {file_path}")
|
|
415
416
|
glob_start = time.time()
|
|
416
|
-
|
|
417
|
+
test = glob(file_path, recursive=True)
|
|
418
|
+
files = files + test
|
|
417
419
|
glob_end = time.time()
|
|
418
420
|
glob_total_time = glob_end - glob_start
|
|
419
421
|
log.debug(f"Glob for pattern {file_path} took {glob_total_time:.2f} seconds")
|
|
420
422
|
else:
|
|
421
423
|
log.debug("Files found from commit")
|
|
422
424
|
files = Core.match_supported_files(path, files)
|
|
423
|
-
name_fix_start = time.time()
|
|
424
|
-
for file in files:
|
|
425
|
-
# log.debug(f"Getting file and path for {file_path}")
|
|
426
|
-
if platform.system() == "Windows":
|
|
427
|
-
file = file.replace("\\", "/")
|
|
428
|
-
if path not in file:
|
|
429
|
-
file = f"{path}/{file}"
|
|
430
|
-
found_path, file_name = file.rsplit("/", 1)
|
|
431
|
-
details = (found_path, file_name)
|
|
432
|
-
if details not in all_files:
|
|
433
|
-
all_files.add(details)
|
|
434
|
-
name_fix_end = time.time()
|
|
435
|
-
total_name_fix = name_fix_end - name_fix_start
|
|
436
|
-
log.debug(f"Total Time for name fix for {file_path} was {total_name_fix:.6f}")
|
|
437
425
|
log.debug("Finished Find Files")
|
|
438
426
|
end_time = time.time()
|
|
439
427
|
total_time = end_time - start_time
|
|
440
|
-
log.info(f"Found {len(
|
|
441
|
-
|
|
442
|
-
return all_files
|
|
428
|
+
log.info(f"Found {len(files)} in {total_time:.2f} seconds")
|
|
429
|
+
return files
|
|
443
430
|
|
|
444
431
|
@staticmethod
|
|
445
432
|
def create_full_scan(files: list, params: FullScanParams, workspace: str) -> FullScan:
|
|
@@ -451,7 +438,16 @@ class Core:
|
|
|
451
438
|
:return:
|
|
452
439
|
"""
|
|
453
440
|
send_files = []
|
|
454
|
-
|
|
441
|
+
create_full_start = time.time()
|
|
442
|
+
log.debug("Creating new full scan")
|
|
443
|
+
for file in files:
|
|
444
|
+
if platform.system() == "Windows":
|
|
445
|
+
file = file.replace("\\", "/")
|
|
446
|
+
if "/" in file:
|
|
447
|
+
path, name = file.rsplit("/", 1)
|
|
448
|
+
else:
|
|
449
|
+
path = "."
|
|
450
|
+
name = file
|
|
455
451
|
full_path = f"{path}/{name}"
|
|
456
452
|
if full_path.startswith(workspace):
|
|
457
453
|
key = full_path[len(workspace):]
|
|
@@ -473,6 +469,9 @@ class Core:
|
|
|
473
469
|
results = response.json()
|
|
474
470
|
full_scan = FullScan(**results)
|
|
475
471
|
full_scan.sbom_artifacts = Core.get_sbom_data(full_scan.id)
|
|
472
|
+
create_full_end = time.time()
|
|
473
|
+
total_time = create_full_end - create_full_start
|
|
474
|
+
log.debug(f"New Full Scan created in {total_time:.2f} seconds")
|
|
476
475
|
return full_scan
|
|
477
476
|
|
|
478
477
|
@staticmethod
|
|
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.14 → socketsecurity-1.0.15}/socketsecurity.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|