forked from anchore/syft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 1.6 to supported cyclonedx spec versions.
- Resolves anchore#2974 - Also add detailed instructions re: updating schemas (a necessary task when a new CycloneDX spec version becomes available). - The DefaultVersion constant has been updated to "1.6" -- it's not clear to me how this is used at this time (it may be redundant given other code), but effectively unless a specific spec version is configured, `syft` will emit the "most recent" spec version available for cyclonedx. Users who wish to pin back to a "older" specVersion (e.g. to preserve compatibilty with utilities that have not yet bumped to latest) can either set this in a syft config file or pass a name@spec_version pair to the output flag (e.g. `-o cyclonedx-json@1.5=some-1.5-spec-bom.cdx.json`) Signed-off-by: Rajan Agaskar <ragaskar@gmail.com>
- Loading branch information
Showing
9 changed files
with
6,856 additions
and
1,897 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json", | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.6", | ||
"serialNumber": "urn:uuid:5208fea9-73dd-4624-b596-69fddccdb9e7", | ||
"version": 1, | ||
"metadata": { | ||
"timestamp": "2023-09-29T12:02:02-04:00", | ||
"tools": [ | ||
{ | ||
"vendor": "anchore", | ||
"name": "syft", | ||
"version": "[not provided]" | ||
} | ||
], | ||
"component": { | ||
"bom-ref": "a0ff99a6af10f11f", | ||
"type": "file", | ||
"name": "go.mod", | ||
"version": "sha256:sha256:dc333f342905248a52e424d8dfd061251d01867d01a4f9d7397144a775ff9ebd" | ||
} | ||
}, | ||
"components": [ | ||
{ | ||
"bom-ref": "pkg:golang/github.com/wagoodman/go-partybus@v0.0.0-20230516145632-8ccac152c651?package-id=2ff71a67fb024c86", | ||
"type": "library", | ||
"name": "github.com/wagoodman/go-partybus", | ||
"version": "v0.0.0-20230516145632-8ccac152c651", | ||
"cpe": "cpe:2.3:a:wagoodman:go-partybus:v0.0.0-20230516145632-8ccac152c651:*:*:*:*:*:*:*", | ||
"purl": "pkg:golang/github.com/wagoodman/go-partybus@v0.0.0-20230516145632-8ccac152c651", | ||
"properties": [ | ||
{ | ||
"name": "syft:package:foundBy", | ||
"value": "go-module-file-cataloger" | ||
}, | ||
{ | ||
"name": "syft:package:language", | ||
"value": "go" | ||
}, | ||
{ | ||
"name": "syft:package:metadataType", | ||
"value": "GolangModMetadata" | ||
}, | ||
{ | ||
"name": "syft:package:type", | ||
"value": "go-module" | ||
}, | ||
{ | ||
"name": "syft:cpe23", | ||
"value": "cpe:2.3:a:wagoodman:go_partybus:v0.0.0-20230516145632-8ccac152c651:*:*:*:*:*:*:*" | ||
}, | ||
{ | ||
"name": "syft:location:0:path", | ||
"value": "/go.mod" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.