socketsecurity 1.0.35__tar.gz → 1.0.38__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.
Files changed (23) hide show
  1. {socketsecurity-1.0.35/socketsecurity.egg-info → socketsecurity-1.0.38}/PKG-INFO +1 -2
  2. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/pyproject.toml +2 -2
  3. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity/__init__.py +1 -1
  4. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity/core/__init__.py +27 -14
  5. {socketsecurity-1.0.35 → socketsecurity-1.0.38/socketsecurity.egg-info}/PKG-INFO +1 -2
  6. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity.egg-info/requires.txt +0 -1
  7. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/LICENSE +0 -0
  8. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/README.md +0 -0
  9. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/setup.cfg +0 -0
  10. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity/core/classes.py +0 -0
  11. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity/core/exceptions.py +0 -0
  12. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity/core/git_interface.py +0 -0
  13. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity/core/github.py +0 -0
  14. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity/core/gitlab.py +0 -0
  15. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity/core/issues.py +0 -0
  16. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity/core/licenses.py +0 -0
  17. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity/core/messages.py +0 -0
  18. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity/core/scm_comments.py +0 -0
  19. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity/socketcli.py +0 -0
  20. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity.egg-info/SOURCES.txt +0 -0
  21. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity.egg-info/dependency_links.txt +0 -0
  22. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity.egg-info/entry_points.txt +0 -0
  23. {socketsecurity-1.0.35 → socketsecurity-1.0.38}/socketsecurity.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: socketsecurity
3
- Version: 1.0.35
3
+ Version: 1.0.38
4
4
  Summary: Socket Security CLI for CI/CD
5
5
  Author-email: Douglas Coburn <douglas@socket.dev>
6
6
  Maintainer-email: Douglas Coburn <douglas@socket.dev>
@@ -18,7 +18,6 @@ License-File: LICENSE
18
18
  Requires-Dist: requests
19
19
  Requires-Dist: mdutils
20
20
  Requires-Dist: prettytable
21
- Requires-Dist: argparse
22
21
  Requires-Dist: GitPython
23
22
  Requires-Dist: packaging
24
23
 
@@ -10,9 +10,8 @@ dependencies = [
10
10
  'requests',
11
11
  'mdutils',
12
12
  'prettytable',
13
- 'argparse',
14
13
  'GitPython',
15
- 'packaging'
14
+ 'packaging',
16
15
  ]
17
16
  readme = "README.md"
18
17
  description = "Socket Security CLI for CI/CD"
@@ -32,6 +31,7 @@ classifiers = [
32
31
  "Programming Language :: Python :: 3.12",
33
32
  ]
34
33
 
34
+
35
35
  [project.scripts]
36
36
  socketcli = "socketsecurity.socketcli:cli"
37
37
 
@@ -1,2 +1,2 @@
1
1
  __author__ = 'socket.dev'
2
- __version__ = '1.0.35'
2
+ __version__ = '1.0.38'
@@ -116,6 +116,9 @@ socket_globs = {
116
116
  },
117
117
  "setup.py": {
118
118
  "pattern": "setup.py"
119
+ },
120
+ "pipfile.lock": {
121
+ "pattern": "pipfile.lock"
119
122
  }
120
123
  },
121
124
  "golang": {
@@ -407,12 +410,15 @@ class Core:
407
410
  patterns = socket_globs[ecosystem]
408
411
  for file_name in patterns:
409
412
  pattern = patterns[file_name]["pattern"]
410
- # path_pattern = f"**/{pattern}"
411
413
  for file in files:
412
414
  if "\\" in file:
413
415
  file = file.replace("\\", "/")
414
- if PurePath(file).match(pattern):
415
- matched_files.append(file)
416
+ # Split path and filename
417
+ path_parts = PurePath(file).parts
418
+ if path_parts:
419
+ # Compare only the filename portion case-insensitively
420
+ if PurePath(path_parts[-1].lower()).match(pattern.lower()):
421
+ matched_files.append(file)
416
422
  if len(matched_files) == 0:
417
423
  not_matched = True
418
424
  return not_matched
@@ -432,17 +438,24 @@ class Core:
432
438
  patterns = socket_globs[ecosystem]
433
439
  for file_name in patterns:
434
440
  pattern = patterns[file_name]["pattern"]
435
- file_path = f"{path}/**/{pattern}"
436
-
437
- log.debug(f"Globbing {file_path}")
438
- glob_start = time.time()
439
- glob_files = glob(file_path, recursive=True)
440
- for glob_file in glob_files:
441
- if glob_file not in files:
442
- files.add(glob_file)
443
- glob_end = time.time()
444
- glob_total_time = glob_end - glob_start
445
- log.debug(f"Glob for pattern {file_path} took {glob_total_time:.2f} seconds")
441
+ # Keep path as-is but try filename variations
442
+ file_paths = [
443
+ f"{path}/**/{pattern}",
444
+ f"{path}/**/{pattern.lower()}",
445
+ f"{path}/**/{pattern.upper()}",
446
+ f"{path}/**/{pattern.capitalize()}"
447
+ ]
448
+
449
+ for file_path in file_paths:
450
+ log.debug(f"Globbing {file_path}")
451
+ glob_start = time.time()
452
+ glob_files = glob(file_path, recursive=True)
453
+ for glob_file in glob_files:
454
+ if glob_file not in files:
455
+ files.add(glob_file)
456
+ glob_end = time.time()
457
+ glob_total_time = glob_end - glob_start
458
+ log.debug(f"Glob for pattern {file_path} took {glob_total_time:.2f} seconds")
446
459
 
447
460
  log.debug("Finished Find Files")
448
461
  end_time = time.time()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: socketsecurity
3
- Version: 1.0.35
3
+ Version: 1.0.38
4
4
  Summary: Socket Security CLI for CI/CD
5
5
  Author-email: Douglas Coburn <douglas@socket.dev>
6
6
  Maintainer-email: Douglas Coburn <douglas@socket.dev>
@@ -18,7 +18,6 @@ License-File: LICENSE
18
18
  Requires-Dist: requests
19
19
  Requires-Dist: mdutils
20
20
  Requires-Dist: prettytable
21
- Requires-Dist: argparse
22
21
  Requires-Dist: GitPython
23
22
  Requires-Dist: packaging
24
23
 
@@ -1,6 +1,5 @@
1
1
  requests
2
2
  mdutils
3
3
  prettytable
4
- argparse
5
4
  GitPython
6
5
  packaging
File without changes