Skip to content

Add workspace support for full scans (v1.x)#1096

Merged
jdalton merged 6 commits intov1.xfrom
lelia/add-workspace-support-v1x
Mar 11, 2026
Merged

Add workspace support for full scans (v1.x)#1096
jdalton merged 6 commits intov1.xfrom
lelia/add-workspace-support-v1x

Conversation

@lelia
Copy link

@lelia lelia commented Feb 27, 2026

Summary

Adds --workspace support to socket scan create so scans can be associated with the correct Socket workspace (API workspace query param on CreateOrgFullScan). Also allows persisting a default workspace via socket scan setup.

💡 Note: This PR was previously filed as #1095, but due to targeting main instead of v1.x, it was easier to simply re-create as a fresh PR.

Changes

  • CLI flag: socket scan create --workspace <string> (optional)
  • Config: socket scan setup can persist defaults.scan.create.workspace in .socket/socket.json
  • API plumbing: forwards workspace through handleCreateNewScanfetchCreateOrgFullScan → SDK createFullScan(..., { workspace })

refs: SocketDev/socket-python-cli#164 + SocketDev/socket-sdk-python#68


Note

Medium Risk
Moderate risk because it changes the parameters sent to the full-scan creation API and introduces a new persisted default that can alter scan association without users explicitly passing flags.

Overview
Adds optional --workspace support to socket scan create, including reading/writing a default via .socket/socket.json (defaults.scan.create.workspace).

Plumbs the workspace value through handleCreateNewScan into fetchCreateOrgFullScan, which now conditionally forwards it to the SDK createOrgFullScan request, and updates debug/help output/tests accordingly.

Written by Cursor Bugbot for commit 7148530. This will update automatically on new commits. Configure here.

@jdalton jdalton merged commit 1511848 into v1.x Mar 11, 2026
8 checks passed
@jdalton jdalton deleted the lelia/add-workspace-support-v1x branch March 11, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants