-
Couldn't load subscription status.
- Fork 8
feat: add monorepo workspace support with --sub-path and --workspace-... #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
...name - Add --sub-path option to scan manifest files in a subdirectory while preserving git context from target-path - Add --workspace-name option to append suffix to repository name (repo-name-workspace_name) - Require both options to be used together with validation - Update scanning logic to use combined target_path + sub_path for manifest file detection - Modify repository naming to include workspace suffix when provided - Preserve git repository context (commits, branches, etc.) from main target-path - Enable Socket CLI to work with monorepo structures where manifests are in subdirectories This allows users to scan specific workspaces within a monorepo while maintaining proper git context and
@dacoburn
dacoburn
requested review from
bmeck and
nolanlawson
and removed request for
a team
September 12, 2025 04:20
@dacoburn
dacoburn
added
the
Product Changelog
New features for the public changelog
label
Sep 12, 2025
🚀 Preview package published!
Install with:
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple socketsecurity==2.2.9.dev1
Docker image: socketdev/cli:pr-120
barslev
barslev
approved these changes
Sep 12, 2025
@dacoburn
dacoburn
deleted the
doug/add-workspace-support-in-monorepo
branch
September 12, 2025 04:28
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds monorepo workspace support to the Socket CLI by introducing two new command-line options:
--sub-pathand--workspace-name. These options enable users to scan specific subdirectories within a monorepo while preserving the git context from the main repository root and organizing scans with distinct workspace names in Socket.Why?
Many organizations use monorepo structures where multiple applications or services live in subdirectories, each with their own manifest files (package.json, requirements.txt, etc.). Previously, the Socket CLI would either:
This feature solves both problems by:
The two options must be used together to ensure proper workspace organization and prevent configuration errors.
Public Changelog
Added monorepo workspace support with
--sub-pathand--workspace-nameoptions. Users can now scan specific subdirectories within a repository while preserving git context and organizing results with workspace-specific naming in Socket. Both options are required together for proper workspace configuration.