socketsecurity 2.1.12__tar.gz → 2.1.16__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.1.12 → socketsecurity-2.1.16}/PKG-INFO +1 -1
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/pyproject.toml +1 -1
- socketsecurity-2.1.16/requirements-dev.txt +73 -0
- socketsecurity-2.1.16/requirements.txt +71 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/__init__.py +1 -1
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/config.py +1 -1
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/core/__init__.py +4 -3
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/core/classes.py +1 -1
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/socketcli.py +2 -2
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/.github/CODEOWNERS +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/.github/PULL_REQUEST_TEMPLATE/bug-fix.md +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/.github/PULL_REQUEST_TEMPLATE/feature.md +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/.github/PULL_REQUEST_TEMPLATE/improvement.md +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/.github/workflows/docker-stable.yml +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/.github/workflows/pr-preview.yml +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/.github/workflows/release.yml +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/.github/workflows/version-check.yml +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/.gitignore +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/.hooks/sync_version.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/.pre-commit-config.yaml +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/.python-version +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/Dockerfile +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/LICENSE +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/Makefile +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/Pipfile.lock +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/README.md +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/docs/README.md +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/pytest.ini +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/requirements-dev.lock +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/requirements.lock +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/scripts/build_container.sh +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/scripts/deploy-test-docker.sh +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/scripts/deploy-test-pypi.sh +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/scripts/run.sh +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/core/cli_client.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/core/exceptions.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/core/git_interface.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/core/helper/__init__.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/core/logging.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/core/messages.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/core/scm/__init__.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/core/scm/base.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/core/scm/client.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/core/scm/github.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/core/scm/gitlab.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/core/scm_comments.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/core/socket_config.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/core/utils.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/output.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/plugins/__init__.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/plugins/base.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/plugins/jira.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/plugins/manager.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/plugins/slack.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/plugins/teams.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/socketsecurity/plugins/webhook.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/__init__.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/core/conftest.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/core/create_diff_input.json +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/core/test_diff_generation.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/core/test_package_and_alerts.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/core/test_sdk_methods.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/core/test_supporting_methods.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/data/fullscans/create_response.json +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/data/fullscans/diff/stream_diff.json +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/data/fullscans/diff/stream_diff_full.json +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/data/fullscans/head_scan/metadata.json +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/data/fullscans/head_scan/stream_scan.json +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/data/fullscans/head_scan/stream_scan_full.json +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/data/fullscans/new_scan/metadata.json +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/data/fullscans/new_scan/stream_scan.json +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/data/repos/repo_info_error.json +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/data/repos/repo_info_no_head.json +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/data/repos/repo_info_success.json +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/data/settings/security-policy.json +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/unit/__init__.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/unit/test_cli_config.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/unit/test_client.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/unit/test_config.py +0 -0
- {socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/unit/test_output.py +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# generated by rye
|
|
2
|
+
# use `rye lock` or `rye sync` to update this lockfile
|
|
3
|
+
#
|
|
4
|
+
# last locked with the following flags:
|
|
5
|
+
# pre: false
|
|
6
|
+
# features: ["test"]
|
|
7
|
+
# all-features: false
|
|
8
|
+
# with-sources: false
|
|
9
|
+
# generate-hashes: false
|
|
10
|
+
# universal: false
|
|
11
|
+
|
|
12
|
+
hatchling==1.27.0
|
|
13
|
+
hatch==1.14.0
|
|
14
|
+
argparse==1.4.0
|
|
15
|
+
# via socketsecurity
|
|
16
|
+
certifi==2024.12.14
|
|
17
|
+
# via requests
|
|
18
|
+
charset-normalizer==3.4.1
|
|
19
|
+
# via requests
|
|
20
|
+
colorama==0.4.6
|
|
21
|
+
# via pytest-watch
|
|
22
|
+
coverage==7.6.10
|
|
23
|
+
# via pytest-cov
|
|
24
|
+
docopt==0.6.2
|
|
25
|
+
# via pytest-watch
|
|
26
|
+
gitdb==4.0.12
|
|
27
|
+
# via gitpython
|
|
28
|
+
gitpython==3.1.44
|
|
29
|
+
# via socketsecurity
|
|
30
|
+
idna==3.10
|
|
31
|
+
# via requests
|
|
32
|
+
iniconfig==2.0.0
|
|
33
|
+
# via pytest
|
|
34
|
+
mdutils==1.6.0
|
|
35
|
+
# via socketsecurity
|
|
36
|
+
packaging==24.2
|
|
37
|
+
# via pytest
|
|
38
|
+
# via socketsecurity
|
|
39
|
+
pluggy==1.5.0
|
|
40
|
+
# via pytest
|
|
41
|
+
prettytable==3.12.0
|
|
42
|
+
# via socketsecurity
|
|
43
|
+
pytest==8.3.4
|
|
44
|
+
# via pytest-asyncio
|
|
45
|
+
# via pytest-cov
|
|
46
|
+
# via pytest-mock
|
|
47
|
+
# via pytest-watch
|
|
48
|
+
# via socketsecurity
|
|
49
|
+
pytest-asyncio==0.25.1
|
|
50
|
+
# via socketsecurity
|
|
51
|
+
pytest-cov==6.0.0
|
|
52
|
+
# via socketsecurity
|
|
53
|
+
pytest-mock==3.14.0
|
|
54
|
+
# via socketsecurity
|
|
55
|
+
pytest-watch==4.2.0
|
|
56
|
+
# via socketsecurity
|
|
57
|
+
python-dotenv==1.0.1
|
|
58
|
+
# via socketsecurity
|
|
59
|
+
requests==2.32.3
|
|
60
|
+
# via socket-sdk-python
|
|
61
|
+
# via socketsecurity
|
|
62
|
+
smmap==5.0.2
|
|
63
|
+
# via gitdb
|
|
64
|
+
socket-sdk-python==2.0.15
|
|
65
|
+
# via socketsecurity
|
|
66
|
+
typing-extensions==4.12.2
|
|
67
|
+
# via socket-sdk-python
|
|
68
|
+
urllib3==2.3.0
|
|
69
|
+
# via requests
|
|
70
|
+
watchdog==6.0.0
|
|
71
|
+
# via pytest-watch
|
|
72
|
+
wcwidth==0.2.13
|
|
73
|
+
# via prettytable
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# generated by rye
|
|
2
|
+
# use `rye lock` or `rye sync` to update this lockfile
|
|
3
|
+
#
|
|
4
|
+
# last locked with the following flags:
|
|
5
|
+
# pre: false
|
|
6
|
+
# features: ["test"]
|
|
7
|
+
# all-features: false
|
|
8
|
+
# with-sources: false
|
|
9
|
+
# generate-hashes: false
|
|
10
|
+
# universal: false
|
|
11
|
+
|
|
12
|
+
argparse==1.4.0
|
|
13
|
+
# via socketsecurity
|
|
14
|
+
certifi==2024.12.14
|
|
15
|
+
# via requests
|
|
16
|
+
charset-normalizer==3.4.1
|
|
17
|
+
# via requests
|
|
18
|
+
colorama==0.4.6
|
|
19
|
+
# via pytest-watch
|
|
20
|
+
coverage==7.6.10
|
|
21
|
+
# via pytest-cov
|
|
22
|
+
docopt==0.6.2
|
|
23
|
+
# via pytest-watch
|
|
24
|
+
gitdb==4.0.12
|
|
25
|
+
# via gitpython
|
|
26
|
+
gitpython==3.1.44
|
|
27
|
+
# via socketsecurity
|
|
28
|
+
idna==3.10
|
|
29
|
+
# via requests
|
|
30
|
+
iniconfig==2.0.0
|
|
31
|
+
# via pytest
|
|
32
|
+
mdutils==1.6.0
|
|
33
|
+
# via socketsecurity
|
|
34
|
+
packaging==24.2
|
|
35
|
+
# via pytest
|
|
36
|
+
# via socketsecurity
|
|
37
|
+
pluggy==1.5.0
|
|
38
|
+
# via pytest
|
|
39
|
+
prettytable==3.12.0
|
|
40
|
+
# via socketsecurity
|
|
41
|
+
pytest==8.3.4
|
|
42
|
+
# via pytest-asyncio
|
|
43
|
+
# via pytest-cov
|
|
44
|
+
# via pytest-mock
|
|
45
|
+
# via pytest-watch
|
|
46
|
+
# via socketsecurity
|
|
47
|
+
pytest-asyncio==0.25.1
|
|
48
|
+
# via socketsecurity
|
|
49
|
+
pytest-cov==6.0.0
|
|
50
|
+
# via socketsecurity
|
|
51
|
+
pytest-mock==3.14.0
|
|
52
|
+
# via socketsecurity
|
|
53
|
+
pytest-watch==4.2.0
|
|
54
|
+
# via socketsecurity
|
|
55
|
+
python-dotenv==1.0.1
|
|
56
|
+
# via socketsecurity
|
|
57
|
+
requests==2.32.3
|
|
58
|
+
# via socket-sdk-python
|
|
59
|
+
# via socketsecurity
|
|
60
|
+
smmap==5.0.2
|
|
61
|
+
# via gitdb
|
|
62
|
+
socket-sdk-python==2.0.15
|
|
63
|
+
# via socketsecurity
|
|
64
|
+
typing-extensions==4.12.2
|
|
65
|
+
# via socket-sdk-python
|
|
66
|
+
urllib3==2.3.0
|
|
67
|
+
# via requests
|
|
68
|
+
watchdog==6.0.0
|
|
69
|
+
# via pytest-watch
|
|
70
|
+
wcwidth==0.2.13
|
|
71
|
+
# via prettytable
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
__author__ = 'socket.dev'
|
|
2
|
-
__version__ = '2.1.
|
|
2
|
+
__version__ = '2.1.16'
|
|
@@ -42,7 +42,7 @@ class CliConfig:
|
|
|
42
42
|
enable_sarif: bool = False
|
|
43
43
|
disable_overview: bool = False
|
|
44
44
|
disable_security_issue: bool = False
|
|
45
|
-
files: str =
|
|
45
|
+
files: str = None
|
|
46
46
|
ignore_commit_files: bool = False
|
|
47
47
|
disable_blocking: bool = False
|
|
48
48
|
integration_type: IntegrationType = "api"
|
|
@@ -860,9 +860,10 @@ class Core:
|
|
|
860
860
|
manifests = ""
|
|
861
861
|
if not hasattr(package, "manifestFiles"):
|
|
862
862
|
return introduced_by
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
863
|
+
if hasattr(package, "manifestFiles"):
|
|
864
|
+
for manifest_data in package.manifestFiles:
|
|
865
|
+
manifest_file = manifest_data.get("file")
|
|
866
|
+
manifests += f"{manifest_file};"
|
|
866
867
|
manifests = manifests.rstrip(";")
|
|
867
868
|
source = ("direct", manifests)
|
|
868
869
|
introduced_by.append(source)
|
|
@@ -188,7 +188,7 @@ class Package():
|
|
|
188
188
|
ValueError: If reference data cannot be found in DiffArtifact
|
|
189
189
|
"""
|
|
190
190
|
ref = None
|
|
191
|
-
if data["diffType"] in ["added", "updated"] and data.get("head"):
|
|
191
|
+
if data["diffType"] in ["added", "updated", "unchanged"] and data.get("head"):
|
|
192
192
|
ref = data["head"][0]
|
|
193
193
|
elif data["diffType"] in ["removed", "replaced"] and data.get("base"):
|
|
194
194
|
ref = data["base"][0]
|
|
@@ -130,7 +130,7 @@ def main_code():
|
|
|
130
130
|
files_to_check = set(json.loads(config.files)) # Start with manually specified files
|
|
131
131
|
|
|
132
132
|
# Add git changes if this is a repo and we're not ignoring commit files
|
|
133
|
-
if is_repo and not config.ignore_commit_files:
|
|
133
|
+
if is_repo and not config.ignore_commit_files and not files_to_check:
|
|
134
134
|
files_to_check.update(git_repo.changed_files)
|
|
135
135
|
|
|
136
136
|
# Determine if we need to scan based on manifest files
|
|
@@ -260,7 +260,7 @@ def main_code():
|
|
|
260
260
|
output_handler.handle_output(diff)
|
|
261
261
|
|
|
262
262
|
# Handle license generation
|
|
263
|
-
if diff
|
|
263
|
+
if not should_skip_scan and diff.id != "no_diff_id" and config.generate_license:
|
|
264
264
|
all_packages = {}
|
|
265
265
|
for purl in diff.packages:
|
|
266
266
|
package = diff.packages[purl]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{socketsecurity-2.1.12 → socketsecurity-2.1.16}/.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/data/fullscans/diff/stream_diff_full.json
RENAMED
|
File without changes
|
{socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/data/fullscans/head_scan/metadata.json
RENAMED
|
File without changes
|
{socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/data/fullscans/head_scan/stream_scan.json
RENAMED
|
File without changes
|
{socketsecurity-2.1.12 → socketsecurity-2.1.16}/tests/data/fullscans/head_scan/stream_scan_full.json
RENAMED
|
File without changes
|
|
File without changes
|
{socketsecurity-2.1.12 → socketsecurity-2.1.16}/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
|