We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fc120b commit a7c1b9cCopy full SHA for a7c1b9c
socketsecurity/socketcli.py
@@ -24,6 +24,15 @@
24
25
load_dotenv()
26
27
+def _normalize_workspace(workspace):
28
+ """Return None for unset/blank workspace values so SDK omits query param."""
29
+ if workspace is None:
30
+ return None
31
+ if isinstance(workspace, str):
32
+ normalized = workspace.strip()
33
+ return normalized or None
34
+ return workspace
35
+
36
def cli():
37
try:
38
main_code()
@@ -465,7 +474,7 @@ def main_code():
465
474
set_as_pending_head=is_default_branch,
466
475
tmp=False,
467
476
scan_type='socket_tier1' if config.reach else 'socket',
468
- workspace=config.workspace or "",
477
+ workspace=_normalize_workspace(config.workspace),
469
478
)
470
479
471
480
params.include_license_details = not config.exclude_license_details
0 commit comments