socketsecurity 0.0.74__tar.gz → 0.0.75__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 (21) hide show
  1. {socketsecurity-0.0.74/socketsecurity.egg-info → socketsecurity-0.0.75}/PKG-INFO +1 -1
  2. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/pyproject.toml +1 -1
  3. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/socketsecurity/core/__init__.py +10 -3
  4. {socketsecurity-0.0.74 → socketsecurity-0.0.75/socketsecurity.egg-info}/PKG-INFO +1 -1
  5. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/LICENSE +0 -0
  6. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/README.md +0 -0
  7. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/setup.cfg +0 -0
  8. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/socketsecurity/__init__.py +0 -0
  9. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/socketsecurity/core/classes.py +0 -0
  10. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/socketsecurity/core/exceptions.py +0 -0
  11. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/socketsecurity/core/github.py +0 -0
  12. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/socketsecurity/core/gitlab.py +0 -0
  13. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/socketsecurity/core/issues.py +0 -0
  14. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/socketsecurity/core/licenses.py +0 -0
  15. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/socketsecurity/core/messages.py +0 -0
  16. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/socketsecurity/socketcli.py +0 -0
  17. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/socketsecurity.egg-info/SOURCES.txt +0 -0
  18. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/socketsecurity.egg-info/dependency_links.txt +0 -0
  19. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/socketsecurity.egg-info/entry_points.txt +0 -0
  20. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/socketsecurity.egg-info/requires.txt +0 -0
  21. {socketsecurity-0.0.74 → socketsecurity-0.0.75}/socketsecurity.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: socketsecurity
3
- Version: 0.0.74
3
+ Version: 0.0.75
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>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "socketsecurity"
7
- version = "0.0.74"
7
+ version = "0.0.75"
8
8
  requires-python = ">= 3.9"
9
9
  dependencies = [
10
10
  'requests',
@@ -1,4 +1,6 @@
1
1
  import logging
2
+ import os.path
3
+
2
4
  import requests
3
5
  from urllib.parse import urlencode
4
6
  import base64
@@ -25,7 +27,7 @@ import time
25
27
 
26
28
 
27
29
  __author__ = 'socket.dev'
28
- __version__ = '0.0.74'
30
+ __version__ = '0.0.75'
29
31
  __all__ = [
30
32
  "Core",
31
33
  "log",
@@ -393,7 +395,8 @@ class Core:
393
395
  file = file.replace("\\", "/")
394
396
  found_path, file_name = file.rsplit("/", 1)
395
397
  details = (found_path, file_name)
396
- all_files.append(details)
398
+ if os.path.isfile(file):
399
+ all_files.append(details)
397
400
  return all_files
398
401
 
399
402
  @staticmethod
@@ -644,7 +647,11 @@ class Core:
644
647
  """
645
648
  for item in package.alerts:
646
649
  alert = Alert(**item)
647
- props = getattr(all_issues, alert.type)
650
+ try:
651
+ props = getattr(all_issues, alert.type)
652
+ except AttributeError:
653
+ # log.warning(f"Unable to get issue type props: {alert.type}")
654
+ props = None
648
655
  if props is not None:
649
656
  description = props.description
650
657
  title = props.title
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: socketsecurity
3
- Version: 0.0.74
3
+ Version: 0.0.75
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>
File without changes