From 975f44a2ed165a5a89c83add5ff71f0606512162 Mon Sep 17 00:00:00 2001 From: Douglas Coburn Date: Fri, 27 Feb 2026 09:47:42 -0800 Subject: [PATCH] Fixing issue where incorrect workspace was being set as None --- pyproject.toml | 2 +- socketdev/fullscans/__init__.py | 5 +++++ socketdev/version.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9576dae..262ca14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "socketdev" -version = "3.0.31" +version = "3.0.32" requires-python = ">= 3.9" dependencies = [ 'requests', diff --git a/socketdev/fullscans/__init__.py b/socketdev/fullscans/__init__.py index 2e56e4d..a2eb4f2 100644 --- a/socketdev/fullscans/__init__.py +++ b/socketdev/fullscans/__init__.py @@ -808,6 +808,11 @@ def post( ): print("Removing pull_request param from FullScanParams as it is None, 0, or not an integer") params_dict.pop("pull_request") + + if hasattr(params, 'workspace') and params.workspace is None: + print("Removing workspace param from FullScanParams as it is None") + params_dict.pop("workspace") + params_arg = urllib.parse.urlencode(params_dict) path = "orgs/" + org_slug + "/full-scans?" + str(params_arg) diff --git a/socketdev/version.py b/socketdev/version.py index cf67ab3..b70a418 100644 --- a/socketdev/version.py +++ b/socketdev/version.py @@ -1 +1 @@ -__version__ = "3.0.31" +__version__ = "3.0.32"