socketsecurity 1.0.30__tar.gz → 1.0.31__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.30/socketsecurity.egg-info → socketsecurity-1.0.31}/PKG-INFO +1 -1
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/socketsecurity/__init__.py +1 -1
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/socketsecurity/socketcli.py +9 -1
- {socketsecurity-1.0.30 → socketsecurity-1.0.31/socketsecurity.egg-info}/PKG-INFO +1 -1
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/LICENSE +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/README.md +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/pyproject.toml +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/setup.cfg +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/socketsecurity/core/__init__.py +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/socketsecurity/core/classes.py +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/socketsecurity/core/exceptions.py +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/socketsecurity/core/git_interface.py +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/socketsecurity/core/github.py +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/socketsecurity/core/gitlab.py +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/socketsecurity/core/issues.py +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/socketsecurity/core/licenses.py +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/socketsecurity/core/messages.py +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/socketsecurity/core/scm_comments.py +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/socketsecurity.egg-info/SOURCES.txt +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/socketsecurity.egg-info/dependency_links.txt +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/socketsecurity.egg-info/entry_points.txt +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/socketsecurity.egg-info/requires.txt +0 -0
- {socketsecurity-1.0.30 → socketsecurity-1.0.31}/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.31'
|
|
@@ -173,6 +173,10 @@ def output_console_comments(diff_report: Diff, sbom_file_name: str = None) -> No
|
|
|
173
173
|
log.info(msg)
|
|
174
174
|
if not report_pass(diff_report) and not blocking_disabled:
|
|
175
175
|
sys.exit(1)
|
|
176
|
+
else:
|
|
177
|
+
# Means only warning alerts with no blocked
|
|
178
|
+
if not blocking_disabled:
|
|
179
|
+
sys.exit(5)
|
|
176
180
|
else:
|
|
177
181
|
log.info("No New Security issues detected by Socket Security")
|
|
178
182
|
|
|
@@ -184,6 +188,9 @@ def output_console_json(diff_report: Diff, sbom_file_name: str = None) -> None:
|
|
|
184
188
|
print(json.dumps(console_security_comment))
|
|
185
189
|
if not report_pass(diff_report) and not blocking_disabled:
|
|
186
190
|
sys.exit(1)
|
|
191
|
+
elif len(diff_report.new_alerts) > 0 and not blocking_disabled:
|
|
192
|
+
# Means only warning alerts with no blocked
|
|
193
|
+
sys.exit(5)
|
|
187
194
|
|
|
188
195
|
|
|
189
196
|
def report_pass(diff_report: Diff) -> bool:
|
|
@@ -380,7 +387,8 @@ def main_code():
|
|
|
380
387
|
new_overview_comment
|
|
381
388
|
)
|
|
382
389
|
else:
|
|
383
|
-
log.info("
|
|
390
|
+
log.info("Starting non-PR/MR flow")
|
|
391
|
+
diff = core.create_new_diff(target_path, params, workspace=target_path, no_change=no_change)
|
|
384
392
|
if enable_json:
|
|
385
393
|
log.debug("Outputting JSON Results")
|
|
386
394
|
output_console_json(diff, sbom_file)
|
|
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.30 → socketsecurity-1.0.31}/socketsecurity.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|