Replies: 2 comments 3 replies
-
Hi @moyscode ! The mixing of id and name fields is discussed here #9313 |
Beta Was this translation helpful? Give feedback.
2 replies
-
The error message from Dependency track is as below. So It definitely looks like mixing of "name" & "id" withing the same "licences object is the issue. { "status": 400, "title": "The uploaded BOM is invalid", "detail": "Schema validation failed", "errors": [ "$.components[18].licenses: must be valid to one and only one schema, but 0 are valid", |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
License object sometimes has "id" sometimes "name" when SBOM is created with version 0.65.0.
This is leading to SBOM upload error when uploading the BOM to dependency track
Pic below shows the License object differences for the same item.
Desired Behavior
License object to have same type "id"/"name"
Actual Behavior
License object sometimes has "id" sometimes "name"
Reproduction Steps
Target
Container Image
Scanner
Vulnerability
Output Format
CycloneDX
Mode
Standalone
Debug Output
Operating System
linux
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions