socketsecurity 2.0.42__tar.gz → 2.0.48__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-2.0.42 → socketsecurity-2.0.48}/PKG-INFO +1 -1
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/pyproject.toml +1 -1
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/__init__.py +1 -1
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/__init__.py +5 -7
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/messages.py +1 -3
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/.github/CODEOWNERS +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/.github/PULL_REQUEST_TEMPLATE/bug-fix.md +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/.github/PULL_REQUEST_TEMPLATE/feature.md +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/.github/PULL_REQUEST_TEMPLATE/improvement.md +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/.github/workflows/docker-stable.yml +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/.github/workflows/pr-preview.yml +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/.github/workflows/release.yml +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/.github/workflows/version-check.yml +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/.gitignore +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/.hooks/sync_version.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/.pre-commit-config.yaml +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/.python-version +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/Dockerfile +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/LICENSE +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/Makefile +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/Pipfile.lock +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/README.md +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/docs/README.md +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/pytest.ini +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/requirements-dev.lock +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/requirements.lock +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/scripts/build_container.sh +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/scripts/deploy-test-docker.sh +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/scripts/deploy-test-pypi.sh +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/scripts/run.sh +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/config.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/classes.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/cli_client.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/exceptions.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/git_interface.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/issues.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/licenses.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/logging.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/scm/__init__.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/scm/base.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/scm/client.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/scm/github.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/scm/gitlab.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/scm_comments.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/socket_config.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/core/utils.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/output.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/socketsecurity/socketcli.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/__init__.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/core/conftest.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/core/create_diff_input.json +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/core/test_diff_generation.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/core/test_package_and_alerts.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/core/test_sdk_methods.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/core/test_supporting_methods.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/fullscans/create_response.json +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/fullscans/diff/stream_diff.json +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/fullscans/diff/stream_diff_full.json +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/fullscans/head_scan/metadata.json +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/fullscans/head_scan/stream_scan.json +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/fullscans/head_scan/stream_scan_full.json +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/fullscans/new_scan/metadata.json +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/fullscans/new_scan/stream_scan.json +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/repos/repo_info_error.json +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/repos/repo_info_no_head.json +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/repos/repo_info_success.json +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/settings/security-policy.json +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/unit/__init__.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/unit/test_cli_config.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/unit/test_client.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/unit/test_config.py +0 -0
- {socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/unit/test_output.py +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
__author__ = 'socket.dev'
|
|
2
|
-
__version__ = '2.0.
|
|
2
|
+
__version__ = '2.0.48'
|
|
@@ -201,7 +201,7 @@ class Core:
|
|
|
201
201
|
|
|
202
202
|
for glob_file in glob_files:
|
|
203
203
|
if os.path.isfile(glob_file) and not Core.is_excluded(glob_file, self.config.excluded_dirs):
|
|
204
|
-
files.add(glob_file)
|
|
204
|
+
files.add(glob_file.replace("\\", "/"))
|
|
205
205
|
|
|
206
206
|
glob_end = time.time()
|
|
207
207
|
log.debug(f"Globbing took {glob_end - glob_start:.4f} seconds")
|
|
@@ -290,12 +290,10 @@ class Core:
|
|
|
290
290
|
[(field_name, (filename, file_object)), ...]
|
|
291
291
|
"""
|
|
292
292
|
send_files = []
|
|
293
|
-
|
|
293
|
+
if "\\" in workspace:
|
|
294
|
+
workspace = workspace.replace("\\", "/")
|
|
294
295
|
for file_path in files:
|
|
295
|
-
|
|
296
|
-
_, name = file_path.rsplit("/", 1)
|
|
297
|
-
else:
|
|
298
|
-
name = file_path
|
|
296
|
+
_, name = file_path.rsplit("/", 1)
|
|
299
297
|
|
|
300
298
|
if file_path.startswith(workspace):
|
|
301
299
|
key = file_path[len(workspace):]
|
|
@@ -306,7 +304,7 @@ class Core:
|
|
|
306
304
|
key = key.lstrip("./")
|
|
307
305
|
|
|
308
306
|
f = open(file_path, 'rb')
|
|
309
|
-
payload = (key, (name, f))
|
|
307
|
+
payload = (key, (name.lstrip(workspace), f))
|
|
310
308
|
send_files.append(payload)
|
|
311
309
|
|
|
312
310
|
return send_files
|
|
@@ -2,8 +2,6 @@ import json
|
|
|
2
2
|
import logging
|
|
3
3
|
import re
|
|
4
4
|
from pathlib import Path
|
|
5
|
-
|
|
6
|
-
from docutils.nodes import title
|
|
7
5
|
from mdutils import MdUtils
|
|
8
6
|
from prettytable import PrettyTable
|
|
9
7
|
|
|
@@ -235,7 +233,7 @@ class Messages:
|
|
|
235
233
|
unique_rule_id = f"{base_rule_id} ({mf})"
|
|
236
234
|
rule_name = f"Alert {base_rule_id} ({mf})"
|
|
237
235
|
props = {}
|
|
238
|
-
if hasattr(alert, 'props'):
|
|
236
|
+
if hasattr(alert, 'props') and alert.props:
|
|
239
237
|
props = alert.props
|
|
240
238
|
suggestion = ''
|
|
241
239
|
if hasattr(alert, 'suggestion'):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{socketsecurity-2.0.42 → socketsecurity-2.0.48}/.github/PULL_REQUEST_TEMPLATE/improvement.md
RENAMED
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/fullscans/diff/stream_diff_full.json
RENAMED
|
File without changes
|
{socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/fullscans/head_scan/metadata.json
RENAMED
|
File without changes
|
{socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/fullscans/head_scan/stream_scan.json
RENAMED
|
File without changes
|
{socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/fullscans/head_scan/stream_scan_full.json
RENAMED
|
File without changes
|
|
File without changes
|
{socketsecurity-2.0.42 → socketsecurity-2.0.48}/tests/data/fullscans/new_scan/stream_scan.json
RENAMED
|
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
|