-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for cyclonedx spec v1.4 (#16)
* ci: update cyclonedx-cli: `0.15.2` -> `0.22.0` Signed-off-by: nscuro <[email protected]> * test: fix cyclonedx-cli invocation Signed-off-by: nscuro <[email protected]> * test: rename testdata files to not include spec version will allow us to spot differences after v1.4 update more easily Signed-off-by: nscuro <[email protected]> * test: add testdata input files for v1.4 Signed-off-by: nscuro <[email protected]> * wip: implement v1.4 changes adds release notes and vulnerabilities Signed-off-by: nscuro <[email protected]> * use `string` for timestamp fields; fix `response` field for json Signed-off-by: nscuro <[email protected]> * move new types to `cyclonedx.go` Signed-off-by: nscuro <[email protected]> * fix affected versions for json Signed-off-by: nscuro <[email protected]> * update snapshots for v1.4 Signed-off-by: nscuro <[email protected]> * make json validator happy see CycloneDX/cyclonedx-cli#202 Signed-off-by: nscuro <[email protected]> * add jsf model Signed-off-by: nscuro <[email protected]> * Revert "add jsf model" This reverts commit abee4cf. JSF support will be implemented with #17 Signed-off-by: nscuro <[email protected]> Closes #14
- Loading branch information
Showing
117 changed files
with
1,452 additions
and
132 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,10 @@ package cyclonedx_test | |
|
||
import ( | ||
"fmt" | ||
cdx "github.com/CycloneDX/cyclonedx-go" | ||
"net/http" | ||
"os" | ||
|
||
cdx "github.com/CycloneDX/cyclonedx-go" | ||
) | ||
|
||
// This example demonstrates how to create and encode a BOM in CycloneDX format. | ||
|
@@ -70,7 +71,7 @@ func Example_encode() { | |
|
||
// Output: | ||
// <?xml version="1.0" encoding="UTF-8"?> | ||
// <bom xmlns="http://cyclonedx.org/schema/bom/1.3" version="1"> | ||
// <bom xmlns="http://cyclonedx.org/schema/bom/1.4" version="1"> | ||
// <metadata> | ||
// <component bom-ref="pkg:golang/acme-inc/[email protected]" type="application"> | ||
// <name>ACME Application</name> | ||
|
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
2 changes: 1 addition & 1 deletion
2
...undTripJSON-func1-valid-assembly-1.3.json → ...stRoundTripJSON-func1-valid-assembly.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
2 changes: 1 addition & 1 deletion
2
...estRoundTripJSON-func1-valid-bom-1.3.json → ...go-TestRoundTripJSON-func1-valid-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
2 changes: 1 addition & 1 deletion
2
...SON-func1-valid-component-hashes-1.3.json → ...ripJSON-func1-valid-component-hashes.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
2 changes: 1 addition & 1 deletion
2
...ipJSON-func1-valid-component-ref-1.3.json → ...ndTripJSON-func1-valid-component-ref.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
2 changes: 1 addition & 1 deletion
2
...-func1-valid-component-swid-full-1.3.json → ...JSON-func1-valid-component-swid-full.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
2 changes: 1 addition & 1 deletion
2
...pJSON-func1-valid-component-swid-1.3.json → ...dTripJSON-func1-valid-component-swid.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
2 changes: 1 addition & 1 deletion
2
...JSON-func1-valid-component-types-1.3.json → ...TripJSON-func1-valid-component-types.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
2 changes: 1 addition & 1 deletion
2
...ripJSON-func1-valid-compositions-1.3.json → ...undTripJSON-func1-valid-compositions.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
2 changes: 1 addition & 1 deletion
2
...dTripJSON-func1-valid-dependency-1.3.json → ...RoundTripJSON-func1-valid-dependency.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
2 changes: 1 addition & 1 deletion
2
...SON-func1-valid-empty-components-1.3.json → ...ripJSON-func1-valid-empty-components.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
Oops, something went wrong.