-
Notifications
You must be signed in to change notification settings - Fork 24
[SP-2879] feat: add export dt sub-command, add cyclonedx input file validation #139
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
[SP-2879] feat: add export dt sub-command, add cyclonedx input file validation #139
Conversation
Caution Review failedAn error occurred during the review process. Please try again later. WalkthroughThis update introduces a new "export dt" CLI subcommand for exporting SBOM files to Dependency Track, adds CycloneDX file validation functionality, and bumps the project version to 1.30.0. It also adds the required dependency for CycloneDX validation and documents the changes in the changelog. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant DependencyTrackExporter
participant DependencyTrack API
User->>CLI: scanoss export dt --input INPUT --dt-url URL --dt-apikey KEY ...
CLI->>DependencyTrackExporter: Initialize with config and flags
CLI->>DependencyTrackExporter: upload_sbom(INPUT)
DependencyTrackExporter->>DependencyTrackExporter: Read and validate SBOM (CycloneDX)
DependencyTrackExporter->>DependencyTrackExporter: Encode SBOM as base64
DependencyTrackExporter->>DependencyTrack API: PUT /api/v1/bom with payload
DependencyTrack API-->>DependencyTrackExporter: Response (success/failure)
DependencyTrackExporter-->>CLI: Success/failure result
CLI-->>User: Print result or error
Estimated code review effort3 (~45 minutes) Suggested reviewers
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
b6cb249
to
026a627
Compare
Summary by CodeRabbit
New Features
Chores