socketdev 3.0.20__tar.gz → 3.0.21__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.
- {socketdev-3.0.20 → socketdev-3.0.21}/PKG-INFO +1 -1
- {socketdev-3.0.20 → socketdev-3.0.21}/pyproject.toml +2 -2
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/fullscans/__init__.py +32 -1
- socketdev-3.0.21/socketdev/version.py +1 -0
- socketdev-3.0.20/socketdev/version.py +0 -1
- {socketdev-3.0.20 → socketdev-3.0.21}/.github/CODEOWNERS +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/.github/PULL_REQUEST_TEMPLATE/bug-fix.md +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/.github/PULL_REQUEST_TEMPLATE/feature.md +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/.github/PULL_REQUEST_TEMPLATE/improvement.md +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/.github/workflows/pr-preview.yml +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/.github/workflows/release.yml +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/.github/workflows/version-check.yml +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/.gitignore +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/.hooks/sync_version.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/.python-version +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/LICENSE +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/README.rst +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/scripts/build.sh +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/scripts/deploy-test-pypi.sh +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/alerttypes/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/analytics/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/apitokens/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/auditlog/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/basics/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/core/api.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/core/classes.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/core/dedupe.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/core/issues.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/dependencies/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/diffscans/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/exceptions.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/export/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/historical/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/labels/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/licensemetadata/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/log.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/npm/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/openapi/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/org/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/purl/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/quota/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/report/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/repos/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/repositories/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/sbom/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/settings/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/threatfeed/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/tools/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/triage/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/uploadmanifests/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/socketdev/utils/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/tests/README.md +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/tests/conftest.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/tests/integration/test_all_endpoints.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/tests/integration/test_comprehensive_integration.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/tests/integration/test_diffscans_integration.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/tests/integration/test_new_endpoints.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/tests/run_tests.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/tests/unit/__init__.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/tests/unit/test_all_endpoints_unit.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/tests/unit/test_dedupe.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/tests/unit/test_socket_sdk_unit.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/tests/unit/test_upload_manifests.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/tests/unit/test_working_endpoints_unit.py +0 -0
- {socketdev-3.0.20 → socketdev-3.0.21}/uv.lock +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "socketdev"
|
|
7
|
-
version = "3.0.
|
|
7
|
+
version = "3.0.21"
|
|
8
8
|
requires-python = ">= 3.9"
|
|
9
9
|
dependencies = [
|
|
10
10
|
'requests',
|
|
@@ -123,4 +123,4 @@ docstring-code-format = false
|
|
|
123
123
|
#
|
|
124
124
|
# This only has an effect when the `docstring-code-format` setting is
|
|
125
125
|
# enabled.
|
|
126
|
-
docstring-code-line-length = "dynamic"
|
|
126
|
+
docstring-code-line-length = "dynamic"
|
|
@@ -895,4 +895,35 @@ class FullScans:
|
|
|
895
895
|
|
|
896
896
|
error_message = response.json().get("error", {}).get("message", "Unknown error")
|
|
897
897
|
log.error(f"Error getting diff scan results: {response.status_code}, message: {error_message}")
|
|
898
|
-
return {}
|
|
898
|
+
return {}
|
|
899
|
+
|
|
900
|
+
def finalize_tier1(
|
|
901
|
+
self,
|
|
902
|
+
full_scan_id: str,
|
|
903
|
+
tier1_reachability_scan_id: str,
|
|
904
|
+
) -> bool:
|
|
905
|
+
"""
|
|
906
|
+
Finalize a tier 1 reachability scan by associating it with a full scan.
|
|
907
|
+
|
|
908
|
+
Args:
|
|
909
|
+
full_scan_id: The ID of the full scan to associate with the tier 1 scan
|
|
910
|
+
tier1_reachability_scan_id: The tier 1 reachability scan ID from the facts file
|
|
911
|
+
|
|
912
|
+
Returns:
|
|
913
|
+
True if successful, False otherwise
|
|
914
|
+
"""
|
|
915
|
+
path = "tier1-reachability-scan/finalize"
|
|
916
|
+
payload = json.dumps({
|
|
917
|
+
"tier1_reachability_scan_id": tier1_reachability_scan_id,
|
|
918
|
+
"report_run_id": full_scan_id
|
|
919
|
+
})
|
|
920
|
+
|
|
921
|
+
response = self.api.do_request(
|
|
922
|
+
path=path,
|
|
923
|
+
method="POST",
|
|
924
|
+
payload=payload
|
|
925
|
+
)
|
|
926
|
+
|
|
927
|
+
if response.status_code in (200, 201, 204):
|
|
928
|
+
return True
|
|
929
|
+
return False
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "3.0.21"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "3.0.20"
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|