socketsecurity 0.0.93__tar.gz → 0.0.95__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-0.0.93/socketsecurity.egg-info → socketsecurity-0.0.95}/PKG-INFO +1 -1
  2. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/socketsecurity/__init__.py +1 -1
  3. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/socketsecurity/core/__init__.py +5 -1
  4. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/socketsecurity/core/github.py +3 -0
  5. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/socketsecurity/socketcli.py +2 -1
  6. {socketsecurity-0.0.93 → socketsecurity-0.0.95/socketsecurity.egg-info}/PKG-INFO +1 -1
  7. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/LICENSE +0 -0
  8. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/README.md +0 -0
  9. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/pyproject.toml +0 -0
  10. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/setup.cfg +0 -0
  11. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/socketsecurity/core/classes.py +0 -0
  12. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/socketsecurity/core/exceptions.py +0 -0
  13. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/socketsecurity/core/git_interface.py +0 -0
  14. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/socketsecurity/core/gitlab.py +0 -0
  15. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/socketsecurity/core/issues.py +0 -0
  16. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/socketsecurity/core/licenses.py +0 -0
  17. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/socketsecurity/core/messages.py +0 -0
  18. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/socketsecurity/core/scm_comments.py +0 -0
  19. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/socketsecurity.egg-info/SOURCES.txt +0 -0
  20. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/socketsecurity.egg-info/dependency_links.txt +0 -0
  21. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/socketsecurity.egg-info/entry_points.txt +0 -0
  22. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/socketsecurity.egg-info/requires.txt +0 -0
  23. {socketsecurity-0.0.93 → socketsecurity-0.0.95}/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.93
3
+ Version: 0.0.95
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>
@@ -1,2 +1,2 @@
1
1
  __author__ = 'socket.dev'
2
- __version__ = '0.0.93'
2
+ __version__ = '0.0.95'
@@ -22,7 +22,6 @@ from socketsecurity.core.classes import (
22
22
  )
23
23
  import platform
24
24
  from glob import glob
25
- import fnmatch
26
25
  import time
27
26
 
28
27
  __all__ = [
@@ -156,6 +155,11 @@ class Core:
156
155
  all_new_alerts = True
157
156
  Core.set_org_vars()
158
157
 
158
+ @staticmethod
159
+ def enable_debug_log(level: int):
160
+ global log
161
+ log.setLevel(level)
162
+
159
163
  @staticmethod
160
164
  def set_org_vars() -> None:
161
165
  """
@@ -52,6 +52,9 @@ for env in github_variables:
52
52
  is_default_branch = False
53
53
  else:
54
54
  is_default_branch = True
55
+ if var_name != gh_api_token:
56
+ value = globals()[var_name] = os.getenv(env) or None
57
+ log.debug(f"{env}={value}")
55
58
 
56
59
  headers = {
57
60
  'Authorization': f"Bearer {gh_api_token}",
@@ -169,7 +169,9 @@ def main_code():
169
169
  arguments = parser.parse_args()
170
170
  debug = arguments.enable_debug
171
171
  if debug:
172
+ logging.basicConfig(level=logging.DEBUG)
172
173
  log.setLevel(logging.DEBUG)
174
+ Core.enable_debug_log(logging.DEBUG)
173
175
  log.debug("Debug logging enabled")
174
176
  repo = arguments.repo
175
177
  branch = arguments.branch
@@ -262,7 +264,6 @@ def main_code():
262
264
  log.debug(f"Getting comments for Repo {scm.repository} for PR {scm.pr_number}")
263
265
  comments = scm.get_comments_for_pr(repo, str(pr_number))
264
266
  log.debug("Removing comment alerts")
265
- log.debug("")
266
267
  diff.new_alerts = Comments.remove_alerts(comments, diff.new_alerts)
267
268
  log.debug("Creating Dependency Overview Comment")
268
269
  overview_comment = Messages.dependency_overview_template(diff)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: socketsecurity
3
- Version: 0.0.93
3
+ Version: 0.0.95
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