Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

dacoburn
Copy link
Collaborator

Enhanced monorepo workspace support by allowing multiple --sub-path options to be specified for a single workspace scan. This improvement refactors the CLI to use the updated fullscans API with base_paths parameter, enabling users to scan multiple directories within a monorepo as a unified workspace while preserving git context from the repository root.

Key improvements:

  • Multiple Sub-paths: Users can now specify --sub-path multiple times to include various directories in a single scan
  • API Integration: Updated core scanning functions to use base_paths parameter instead of single base_path
  • Enhanced Documentation: Comprehensive README updates with usage examples and parameter documentation
  • Backward Compatibility: Maintains existing functionality for single-path scanning scenarios

Public Changelog

Enhanced monorepo support: --sub-path can now be specified multiple times to scan multiple directories as a single workspace. Updated API integration to use base_paths for better monorepo workspace organization. Comprehensive documentation updates with practical examples for monorepo scanning workflows.

@dacoburn dacoburn requested a review from a team as a code owner September 12, 2025 16:28
@dacoburn dacoburn requested review from bcomnes and gtystahl and removed request for a team September 12, 2025 16:28
Copy link

github-actions bot commented 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.11.dev1

Docker image: socketdev/cli:pr-121

@dacoburn dacoburn added the Product Changelog New features for the public changelog label Sep 12, 2025
- Add support for multiple --sub-path arguments to scan different directories within a single workspace
- Require --workspace-name when using --sub-path for proper workspace identification
- Optimize base_paths parameter to pass target_path for simplified SDK integration
- Update argument validation to enforce sub_paths and workspace_name pairing
- Add comprehensive README documentation with monorepo examples and usage patterns
- Include GitHub Actions workflow examples for monorepo CI/CD scenarios
- Extend parameter table with detailed descriptions of new CLI options

This enhancement enables scanning multiple directories (e.g., frontend, backend, services/api)
as a single workspace while preserving git context from the repository root, making it ideal
for organizations with monorepo structures.
@dacoburn dacoburn merged commit 4672706 into main Sep 12, 2025
6 checks passed
@dacoburn dacoburn deleted the doug/multiple-sub-paths-for-mono-repo branch September 12, 2025 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product Changelog New features for the public changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants