Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Updated readme and updated sdk requirements #121

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
dacoburn merged 2 commits into main from doug/multiple-sub-paths-for-mono-repo
Sep 12, 2025

Conversation

@dacoburn
Copy link
Collaborator

@dacoburn dacoburn commented Sep 12, 2025

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
edited
Loading

🚀 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

Reviewers

@barslev barslev barslev approved these changes

@bcomnes bcomnes Awaiting requested review from bcomnes bcomnes is a code owner automatically assigned from SocketDev/eng

@gtystahl gtystahl Awaiting requested review from gtystahl gtystahl is a code owner automatically assigned from SocketDev/eng

Assignees

No one assigned

Labels

Product Changelog New features for the public changelog

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /