Skip to content

Conversation

@dacoburn
Copy link
Collaborator

Scans were getting hung up on checking to see if the SBOM was complete. This was not working correctly and has been removed.

Public Changelog

  • Removed unneeded API Checks that were dramatically slowing down scans

- Add --max-purl-batch-size flag (default: 5000, range: 1-9999) to control
  batch size for license detail API calls
- Skip PURL endpoint entirely when --generate-license is not set, improving
  performance for scans that don't need license attribution/details
- Implement batching in get_license_text_via_purl() to process packages in
  configurable chunks, preventing API overload on large repos
- Add validation for max_purl_batch_size parameter with clear error messages
- Remove unused check_full_scans_status() method (dead code cleanup)

This change optimizes license data retrieval by:
1. Only calling PURL endpoint when license output is actually needed
2. Processing packages in manageable batches to avoid timeouts/limits
3. Providing tunable batch sizes for different repo sizes
@dacoburn dacoburn requested a review from a team as a code owner December 12, 2025 01:42
@dacoburn dacoburn requested review from bcomnes and hemanthkini and removed request for a team December 12, 2025 01:42
@dacoburn dacoburn added the Product Changelog New features for the public changelog label Dec 12, 2025
@github-actions
Copy link

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

Docker image: socketdev/cli:pr-140

@dacoburn dacoburn merged commit 7329f50 into main Dec 12, 2025
6 checks passed
@dacoburn dacoburn deleted the doug/remove-full-scan-test branch December 12, 2025 02:27
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.

4 participants