socketsecurity 2.2.86__tar.gz → 2.2.89__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.2.86 → socketsecurity-2.2.89}/.github/workflows/version-check.yml +13 -1
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/.hooks/sync_version.py +28 -3
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/PKG-INFO +1 -1
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/pyproject.toml +1 -1
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/__init__.py +1 -1
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/utils.py +10 -1
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/core/test_has_manifest_files.py +43 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/uv.lock +1 -1
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/.github/CODEOWNERS +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/.github/PULL_REQUEST_TEMPLATE/bug-fix.md +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/.github/PULL_REQUEST_TEMPLATE/feature.md +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/.github/PULL_REQUEST_TEMPLATE/improvement.md +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/.github/workflows/docker-stable.yml +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/.github/workflows/e2e-test.yml +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/.github/workflows/pr-preview.yml +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/.github/workflows/python-tests.yml +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/.github/workflows/release.yml +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/.github/zizmor.yml +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/.gitignore +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/.pre-commit-config.yaml +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/.python-version +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/CHANGELOG.md +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/Dockerfile +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/LICENSE +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/Makefile +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/README.md +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/docs/ci-cd.md +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/docs/cli-reference.md +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/docs/development.md +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/docs/troubleshooting.md +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/examples/config/sarif-dashboard-parity.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/examples/config/sarif-dashboard-parity.toml +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/examples/config/sarif-diff-ci-cd.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/examples/config/sarif-diff-ci-cd.toml +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/examples/config/sarif-instance-detail.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/examples/config/sarif-instance-detail.toml +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/instructions/gitlab-commit-status/uat.md +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/pytest.ini +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/scripts/build_container.sh +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/scripts/build_container_flexible.sh +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/scripts/deploy-test-docker.sh +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/scripts/deploy-test-pypi.sh +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/scripts/docker-entrypoint.sh +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/scripts/run.sh +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/session.md +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socket.yml +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/config.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/__init__.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/alert_selection.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/classes.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/cli_client.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/exceptions.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/git_interface.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/helper/__init__.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/helper/socket_facts_loader.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/lazy_file_loader.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/logging.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/messages.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/resource_utils.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/scm/__init__.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/scm/base.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/scm/client.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/scm/github.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/scm/gitlab.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/scm_comments.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/socket_config.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/tools/reachability.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/output.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/plugins/__init__.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/plugins/base.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/plugins/formatters/__init__.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/plugins/formatters/slack.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/plugins/jira.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/plugins/manager.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/plugins/slack.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/plugins/teams.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/plugins/webhook.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/socketcli.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/__init__.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/core/conftest.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/core/create_diff_input.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/core/test_diff_alerts.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/core/test_diff_generation.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/core/test_package_and_alerts.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/core/test_sdk_methods.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/core/test_supporting_methods.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/data/fullscans/create_response.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/data/fullscans/diff/stream_diff.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/data/fullscans/diff/stream_diff_full.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/data/fullscans/head_scan/metadata.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/data/fullscans/head_scan/stream_scan.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/data/fullscans/head_scan/stream_scan_full.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/data/fullscans/new_scan/metadata.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/data/fullscans/new_scan/stream_scan.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/data/repos/repo_info_error.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/data/repos/repo_info_no_head.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/data/repos/repo_info_success.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/data/settings/security-policy.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/e2e/fixtures/simple-npm/index.js +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/e2e/fixtures/simple-npm/package.json +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/e2e/fixtures/simple-pypi/requirements.txt +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/e2e/validate-gitlab.sh +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/e2e/validate-json.sh +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/e2e/validate-reachability.sh +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/e2e/validate-sarif.sh +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/e2e/validate-scan.sh +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/unit/__init__.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/unit/test_alert_selection.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/unit/test_cli_config.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/unit/test_client.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/unit/test_config.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/unit/test_dependency_overview.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/unit/test_disable_ignore.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/unit/test_gitlab_auth.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/unit/test_gitlab_auth_fallback.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/unit/test_gitlab_commit_status.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/unit/test_gitlab_format.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/unit/test_ignore_telemetry_filtering.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/unit/test_output.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/unit/test_slack_plugin.py +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/workflows/bitbucket-pipelines.yml +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/workflows/buildkite.yml +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/workflows/github-actions.yml +0 -0
- {socketsecurity-2.2.86 → socketsecurity-2.2.89}/workflows/gitlab-ci.yml +0 -0
|
@@ -4,8 +4,8 @@ on:
|
|
|
4
4
|
types: [opened, synchronize, ready_for_review]
|
|
5
5
|
paths:
|
|
6
6
|
- 'socketsecurity/**'
|
|
7
|
-
- 'setup.py'
|
|
8
7
|
- 'pyproject.toml'
|
|
8
|
+
- 'uv.lock'
|
|
9
9
|
|
|
10
10
|
permissions:
|
|
11
11
|
contents: read
|
|
@@ -46,6 +46,18 @@ jobs:
|
|
|
46
46
|
print(f'✅ Version properly incremented from {main_ver} to {pr_ver}')
|
|
47
47
|
"
|
|
48
48
|
|
|
49
|
+
- name: Require uv.lock update when pyproject changes
|
|
50
|
+
run: |
|
|
51
|
+
CHANGED_FILES="$(git diff --name-only origin/main...HEAD)"
|
|
52
|
+
|
|
53
|
+
if echo "$CHANGED_FILES" | grep -qx 'pyproject.toml'; then
|
|
54
|
+
if ! echo "$CHANGED_FILES" | grep -qx 'uv.lock'; then
|
|
55
|
+
echo "❌ pyproject.toml changed, but uv.lock was not updated."
|
|
56
|
+
echo "Run 'uv lock' and commit uv.lock with the version bump."
|
|
57
|
+
exit 1
|
|
58
|
+
fi
|
|
59
|
+
fi
|
|
60
|
+
|
|
49
61
|
- name: Manage PR Comment
|
|
50
62
|
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
|
|
51
63
|
if: always() && github.event.pull_request.head.repo.full_name == github.repository
|
|
@@ -8,6 +8,7 @@ import json
|
|
|
8
8
|
|
|
9
9
|
INIT_FILE = pathlib.Path("socketsecurity/__init__.py")
|
|
10
10
|
PYPROJECT_FILE = pathlib.Path("pyproject.toml")
|
|
11
|
+
UV_LOCK_FILE = pathlib.Path("uv.lock")
|
|
11
12
|
|
|
12
13
|
VERSION_PATTERN = re.compile(r"__version__\s*=\s*['\"]([^'\"]+)['\"]")
|
|
13
14
|
PYPROJECT_PATTERN = re.compile(r'^version\s*=\s*".*"$', re.MULTILINE)
|
|
@@ -72,6 +73,21 @@ def inject_version(version: str):
|
|
|
72
73
|
new_pyproject = re.sub(r"(\[project\])", rf"\1\nversion = \"{version}\"", pyproject)
|
|
73
74
|
PYPROJECT_FILE.write_text(new_pyproject)
|
|
74
75
|
|
|
76
|
+
|
|
77
|
+
def run_uv_lock() -> bool:
|
|
78
|
+
before = UV_LOCK_FILE.read_bytes() if UV_LOCK_FILE.exists() else b""
|
|
79
|
+
try:
|
|
80
|
+
subprocess.run(["uv", "lock"], check=True, text=True)
|
|
81
|
+
except FileNotFoundError:
|
|
82
|
+
print("❌ `uv` is required but was not found in PATH.")
|
|
83
|
+
sys.exit(1)
|
|
84
|
+
except subprocess.CalledProcessError:
|
|
85
|
+
print("❌ `uv lock` failed. Please run it manually and fix any errors.")
|
|
86
|
+
sys.exit(1)
|
|
87
|
+
|
|
88
|
+
after = UV_LOCK_FILE.read_bytes() if UV_LOCK_FILE.exists() else b""
|
|
89
|
+
return before != after
|
|
90
|
+
|
|
75
91
|
def main():
|
|
76
92
|
dev_mode = "--dev" in sys.argv
|
|
77
93
|
current_version = read_version_from_init(INIT_FILE)
|
|
@@ -84,15 +100,24 @@ def main():
|
|
|
84
100
|
base_version = current_version.split(".dev")[0] if ".dev" in current_version else current_version
|
|
85
101
|
new_version = find_next_available_dev_version(base_version)
|
|
86
102
|
inject_version(new_version)
|
|
87
|
-
|
|
103
|
+
uv_lock_changed = run_uv_lock()
|
|
104
|
+
lock_hint = " and uv.lock" if uv_lock_changed else ""
|
|
105
|
+
print(f"⚠️ Version was unchanged — auto-bumped. Please git add{lock_hint} + commit again.")
|
|
88
106
|
sys.exit(0)
|
|
89
107
|
else:
|
|
90
108
|
new_version = bump_patch_version(current_version)
|
|
91
109
|
inject_version(new_version)
|
|
92
|
-
|
|
110
|
+
uv_lock_changed = run_uv_lock()
|
|
111
|
+
lock_hint = " and uv.lock" if uv_lock_changed else ""
|
|
112
|
+
print(f"⚠️ Version was unchanged — auto-bumped. Please git add{lock_hint} + commit again.")
|
|
93
113
|
sys.exit(1)
|
|
94
114
|
else:
|
|
95
|
-
|
|
115
|
+
uv_lock_changed = run_uv_lock()
|
|
116
|
+
if uv_lock_changed:
|
|
117
|
+
print("⚠️ Version already bumped, but uv.lock was out of date and has been updated. Please git add uv.lock + commit again.")
|
|
118
|
+
sys.exit(1)
|
|
119
|
+
|
|
120
|
+
print("✅ Version already bumped and uv.lock is up to date — proceeding.")
|
|
96
121
|
sys.exit(0)
|
|
97
122
|
|
|
98
123
|
if __name__ == "__main__":
|
|
@@ -38,6 +38,15 @@ socket_globs = {
|
|
|
38
38
|
},
|
|
39
39
|
"pnpm-workspace.yml": {
|
|
40
40
|
"pattern": "pnpm-workspace.yml"
|
|
41
|
+
},
|
|
42
|
+
"bun.lock": {
|
|
43
|
+
"pattern": "bun.lock"
|
|
44
|
+
},
|
|
45
|
+
"bun.lockb": {
|
|
46
|
+
"pattern": "bun.lockb"
|
|
47
|
+
},
|
|
48
|
+
"vlt-lock.json": {
|
|
49
|
+
"pattern": "vlt-lock.json"
|
|
41
50
|
}
|
|
42
51
|
},
|
|
43
52
|
"pypi": {
|
|
@@ -105,4 +114,4 @@ socket_globs = {
|
|
|
105
114
|
"pattern": "packages.lock.json"
|
|
106
115
|
}
|
|
107
116
|
}
|
|
108
|
-
}
|
|
117
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from unittest.mock import patch
|
|
2
2
|
|
|
3
3
|
from socketsecurity.core import Core
|
|
4
|
+
from socketsecurity.core.utils import socket_globs
|
|
4
5
|
|
|
5
6
|
# Minimal patterns matching what the Socket API returns
|
|
6
7
|
MOCK_PATTERNS = {
|
|
@@ -8,6 +9,9 @@ MOCK_PATTERNS = {
|
|
|
8
9
|
"packagejson": {"pattern": "package.json"},
|
|
9
10
|
"packagelockjson": {"pattern": "package-lock.json"},
|
|
10
11
|
"yarnlock": {"pattern": "yarn.lock"},
|
|
12
|
+
"bunlock": {"pattern": "bun.lock"},
|
|
13
|
+
"bunlockb": {"pattern": "bun.lockb"},
|
|
14
|
+
"vltlockjson": {"pattern": "vlt-lock.json"},
|
|
11
15
|
},
|
|
12
16
|
"pypi": {
|
|
13
17
|
"requirements": {"pattern": "*requirements.txt"},
|
|
@@ -66,3 +70,42 @@ class TestHasManifestFiles:
|
|
|
66
70
|
def test_pom_xml_root(self, mock_patterns):
|
|
67
71
|
core = Core.__new__(Core)
|
|
68
72
|
assert core.has_manifest_files(["pom.xml"]) is True
|
|
73
|
+
|
|
74
|
+
def test_bun_lock_root(self, mock_patterns):
|
|
75
|
+
core = Core.__new__(Core)
|
|
76
|
+
assert core.has_manifest_files(["bun.lock"]) is True
|
|
77
|
+
|
|
78
|
+
def test_bun_lockb_root(self, mock_patterns):
|
|
79
|
+
core = Core.__new__(Core)
|
|
80
|
+
assert core.has_manifest_files(["bun.lockb"]) is True
|
|
81
|
+
|
|
82
|
+
def test_vlt_lock_json_root(self, mock_patterns):
|
|
83
|
+
core = Core.__new__(Core)
|
|
84
|
+
assert core.has_manifest_files(["vlt-lock.json"]) is True
|
|
85
|
+
|
|
86
|
+
def test_bun_lock_subdirectory(self, mock_patterns):
|
|
87
|
+
core = Core.__new__(Core)
|
|
88
|
+
assert core.has_manifest_files(["apps/web/bun.lock"]) is True
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
@patch.object(Core, "get_supported_patterns", side_effect=RuntimeError("API unreachable"))
|
|
92
|
+
@patch.object(Core, "__init__", lambda self, *a, **kw: None)
|
|
93
|
+
class TestHasManifestFilesFallback:
|
|
94
|
+
"""Exercises the socket_globs fallback path used when the Socket API is unreachable."""
|
|
95
|
+
|
|
96
|
+
def test_fallback_matches_bun_lock(self, mock_patterns):
|
|
97
|
+
core = Core.__new__(Core)
|
|
98
|
+
assert core.has_manifest_files(["bun.lock"]) is True
|
|
99
|
+
|
|
100
|
+
def test_fallback_matches_bun_lockb(self, mock_patterns):
|
|
101
|
+
core = Core.__new__(Core)
|
|
102
|
+
assert core.has_manifest_files(["bun.lockb"]) is True
|
|
103
|
+
|
|
104
|
+
def test_fallback_matches_vlt_lock_json(self, mock_patterns):
|
|
105
|
+
core = Core.__new__(Core)
|
|
106
|
+
assert core.has_manifest_files(["vlt-lock.json"]) is True
|
|
107
|
+
|
|
108
|
+
def test_fallback_patterns_dict_contains_new_entries(self, mock_patterns):
|
|
109
|
+
assert "bun.lock" in socket_globs["npm"]
|
|
110
|
+
assert "bun.lockb" in socket_globs["npm"]
|
|
111
|
+
assert "vlt-lock.json" in socket_globs["npm"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{socketsecurity-2.2.86 → socketsecurity-2.2.89}/.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
|
{socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/core/helper/socket_facts_loader.py
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
|
{socketsecurity-2.2.86 → socketsecurity-2.2.89}/socketsecurity/plugins/formatters/__init__.py
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
|
{socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/data/fullscans/diff/stream_diff_full.json
RENAMED
|
File without changes
|
{socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/data/fullscans/head_scan/metadata.json
RENAMED
|
File without changes
|
{socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/data/fullscans/head_scan/stream_scan.json
RENAMED
|
File without changes
|
{socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/data/fullscans/head_scan/stream_scan_full.json
RENAMED
|
File without changes
|
|
File without changes
|
{socketsecurity-2.2.86 → socketsecurity-2.2.89}/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
|
{socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/e2e/fixtures/simple-pypi/requirements.txt
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
|
{socketsecurity-2.2.86 → socketsecurity-2.2.89}/tests/unit/test_ignore_telemetry_filtering.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|