Add license information to SBOM (CycloneDX) outputs #1204
marcospereira
started this conversation in
Ideas
Replies: 1 comment
|
Implemented in #1208. The fix reuses the installed-package lookup from Thanks for the detailed report! AI-assisted — Tool: Codex; model: openai/gpt-5; version: unavailable. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Currently, when one runs
aube sbom, it generates a CycloneDX SBOM wherecomponentsentries don't have thelicensesfiles:{ "type": "library", "bom-ref": "@babel/runtime@7.29.7", "name": "@babel/runtime", "version": "7.29.7", "purl": "pkg:npm/%40babel/runtime@7.29.7" }CycloneDX 1.5 spec does have a
licensesfield that can be used like this:{ "type": "library", "bom-ref": "@babel/runtime@7.29.7", "name": "@babel/runtime", "version": "7.29.7", "purl": "pkg:npm/%40babel/runtime@7.29.7", "licenses": [ { "license": { "id": "Apache-2.0" } } ] }SPDX format does add
licenseConcludedandlicenseDeclared, but they are alwaysNOASSERTION, as per these comments:aube/crates/aube/src/commands/sbom.rs
Lines 288 to 293 in 856fef1
It seems like Aube would have access to the deps license info, considering that
aube licensesexists.All reactions