-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cyclonedx): add nil check to metadata.component (#2673)
- Loading branch information
1 parent
50db7da
commit de365c8
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
pkg/sbom/cyclonedx/testdata/happy/empty-metadata-component-bom.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.4", | ||
"serialNumber": "urn:uuid:c986ba94-e37d-49c8-9e30-96daccd0415b", | ||
"version": 1, | ||
"metadata": { | ||
"timestamp": "2022-05-28T10:20:03.79527Z", | ||
"tools": [ | ||
{ | ||
"vendor": "aquasecurity", | ||
"name": "trivy", | ||
"version": "dev" | ||
} | ||
] | ||
}, | ||
"dependencies": [] | ||
} |
This file contains 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
This file contains 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