From 24d87e5f67dc591a2fc70326f5bb635f9ea2518e Mon Sep 17 00:00:00 2001 From: Douglas Coburn Date: Thu, 27 Feb 2025 21:59:41 -0800 Subject: [PATCH 1/2] Fix for the validation test being in the get instead of post --- socketdev/fullscans/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/socketdev/fullscans/__init__.py b/socketdev/fullscans/__init__.py index 01685d0..68175ae 100644 --- a/socketdev/fullscans/__init__.py +++ b/socketdev/fullscans/__init__.py @@ -709,8 +709,6 @@ def create_params_string(self, params: dict) -> str: def get(self, org_slug: str, params: dict, use_types: bool = False) -> Union[dict, GetFullScanMetadataResponse]: params_arg = self.create_params_string(params) - Utils.validate_integration_type(params.get("integration_type", "")) - path = "orgs/" + org_slug + "/full-scans" + str(params_arg) response = self.api.do_request(path=path) @@ -729,9 +727,11 @@ def get(self, org_slug: str, params: dict, use_types: bool = False) -> Union[dic return {} def post(self, files: list, params: FullScanParams, use_types: bool = False) -> Union[dict, CreateFullScanResponse]: + Utils.validate_integration_type(params.integration_type if params.integration_type else "api") org_slug = str(params.org_slug) params_dict = params.to_dict() params_dict.pop("org_slug") + params_arg = self.create_params_string(params_dict) path = "orgs/" + org_slug + "/full-scans" + str(params_arg) From c09fd8e08cd45d96cabdd2bbd4b8157f959ed3e6 Mon Sep 17 00:00:00 2001 From: Douglas Coburn Date: Thu, 27 Feb 2025 22:01:09 -0800 Subject: [PATCH 2/2] Increment version --- socketdev/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socketdev/version.py b/socketdev/version.py index 8cb37b5..e5d18b2 100644 --- a/socketdev/version.py +++ b/socketdev/version.py @@ -1 +1 @@ -__version__ = "2.0.8" +__version__ = "2.0.9"