feat(tools): generate_sbom — lockfile-to-CycloneDX SBOM converter + CLI subcommand (+104 tests) - #195
Open
manus-use wants to merge 1 commit into
Open
feat(tools): generate_sbom — lockfile-to-CycloneDX SBOM converter + CLI subcommand (+104 tests)#195manus-use wants to merge 1 commit into
manus-use wants to merge 1 commit into
Conversation
…LI subcommand (+104 tests)
This was referenced Aug 27, 2026
Open
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
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.
Summary
Adds
generate_sbom— a lockfile-to-CycloneDX 1.5 SBOM converter tool +manus-agent generate-sbomCLI subcommand, with 104 fully-mocked tests.What it does
Parses common dependency lockfile formats and produces structured CycloneDX 1.5 JSON suitable for vulnerability scanning with
sbom-scan, Grype, Trivy, or any CDXA-compliant tool.Supported lockfile formats
package-lock.jsonyarn.lockpnpm-lock.yamlpoetry.lockrequirements.txtgo.sumCargo.lockGemfile.lockCLI usage
Strands tool API
Design decisions
requests(for the tool interface contract; the tool itself is pure-stdlib)--typeoverrideDuplicate check
Checked all 50 open PRs (#145–#194) and 30 most recent merged PRs. No existing open or merged PR implements lockfile-to-SBOM generation. Closest related work:
scan_sbom— consumes SBOMs for vulnerability scanning, does not generate them)export_sarif— SARIF output format, different domain)dep_audit— VulnCheck-based auditing, doesn't generate SBOMs)Test coverage
104 new tests covering:
All tests are fully mocked (no real filesystem I/O beyond tmp_path, no HTTP calls).
Test results: 1262 passed, 0 failures (baseline 1158 + 104 new)