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 Signed-off-by: Rajan Agaskar <ragaskar@gmail.com>
- Loading branch information
Showing
4 changed files
with
125 additions
and
0 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
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" | ||
} | ||
] | ||
} | ||
] | ||
} |
28 changes: 28 additions & 0 deletions
28
syft/format/cyclonedxjson/test-fixtures/identify/micronaut-1.6.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,28 @@ | ||
{ | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.6", | ||
"version": 1, | ||
"components": [ | ||
{ | ||
"type": "library", | ||
"group": "io.netty", | ||
"name": "netty-codec-http2", | ||
"version": "4.1.73.Final", | ||
"properties": [ | ||
{ | ||
"name": "syft:cpe23", | ||
"value": "cpe:2.3:a:codec:codec:4.1.73.Final:*:*:*:*:*:*:*" | ||
}, | ||
{ | ||
"name": "syft:cpe23", | ||
"value": "cpe:2.3:a:codec:netty-codec-http2:4.1.73.Final:*:*:*:*:*:*:*" | ||
}, | ||
{ | ||
"name": "syft:cpe23", | ||
"value": "cpe:2.3:a:codec:netty_codec_http2:4.1.73.Final:*:*:*:*:*:*:*" | ||
} | ||
] | ||
} | ||
], | ||
"serialNumber": "urn:uuid:3eb5ec7a-cb05-4339-b873-e27b1c1efaba" | ||
} |
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,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.6" serialNumber="urn:uuid:098e8516-ecd5-4130-9d5f-c32ba1ddb0dd" version="1"> | ||
<metadata> | ||
<timestamp>2023-09-29T11:48:10-04:00</timestamp> | ||
<tools> | ||
<tool> | ||
<vendor>anchore</vendor> | ||
<name>syft</name> | ||
<version>[not provided]</version> | ||
</tool> | ||
</tools> | ||
<component bom-ref="a0ff99a6af10f11f" type="file"> | ||
<name>go.mod</name> | ||
<version>sha256:sha256:dc333f342905248a52e424d8dfd061251d01867d01a4f9d7397144a775ff9ebd</version> | ||
</component> | ||
</metadata> | ||
<components> | ||
<component 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</name> | ||
<version>v0.0.0-20230516145632-8ccac152c651</version> | ||
<cpe>cpe:2.3:a:wagoodman:go-partybus:v0.0.0-20230516145632-8ccac152c651:*:*:*:*:*:*:*</cpe> | ||
<purl>pkg:golang/github.com/wagoodman/go-partybus@v0.0.0-20230516145632-8ccac152c651</purl> | ||
<properties> | ||
<property name="syft:package:foundBy">go-module-file-cataloger</property> | ||
<property name="syft:package:language">go</property> | ||
<property name="syft:package:metadataType">GolangModMetadata</property> | ||
<property name="syft:package:type">go-module</property> | ||
<property name="syft:cpe23">cpe:2.3:a:wagoodman:go_partybus:v0.0.0-20230516145632-8ccac152c651:*:*:*:*:*:*:*</property> | ||
<property name="syft:location:0:path">/go.mod</property> | ||
</properties> | ||
</component> | ||
</components> | ||
</bom> |
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