-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add application name as property and update purl with subpath t…
…o application (#71) * add application name as property and update purl with subpath to application Signed-off-by: nscuro <[email protected]> * update examples Signed-off-by: nscuro <[email protected]> Closes #67
- Loading branch information
Showing
10 changed files
with
131 additions
and
37 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 |
---|---|---|
|
@@ -5,6 +5,9 @@ | |
<name>testmod-simple</name> | ||
<version>v0.0.0-20210716183230-c7ea7c975ab8</version> | ||
<purl>pkg:golang/[email protected]</purl> | ||
<properties> | ||
<property name="cdx:gomod:application:name">001</property> | ||
</properties> | ||
</component> | ||
</metadata> | ||
<components> | ||
|
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.3" serialNumber="urn:uuid:00000000-0000-0000-0000-000000000000" version="1"> | ||
<metadata> | ||
<component bom-ref="pkg:golang/[email protected]" type="application"> | ||
<component bom-ref="pkg:golang/[email protected]#cmd/purl" type="application"> | ||
<name>testmod-simple</name> | ||
<version>v0.0.0-20210901192510-dc2d14d2351d</version> | ||
<purl>pkg:golang/[email protected]</purl> | ||
<purl>pkg:golang/[email protected]#cmd/purl</purl> | ||
<properties> | ||
<property name="cdx:gomod:application:name">purl</property> | ||
</properties> | ||
</component> | ||
</metadata> | ||
<components> | ||
|
@@ -24,7 +27,7 @@ | |
</component> | ||
</components> | ||
<dependencies> | ||
<dependency ref="pkg:golang/[email protected]"> | ||
<dependency ref="pkg:golang/[email protected]#cmd/purl"> | ||
<dependency ref="pkg:golang/github.com/package-url/[email protected]"></dependency> | ||
</dependency> | ||
<dependency ref="pkg:golang/github.com/package-url/[email protected]"></dependency> | ||
|
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.3" serialNumber="urn:uuid:00000000-0000-0000-0000-000000000000" version="1"> | ||
<metadata> | ||
<component bom-ref="pkg:golang/[email protected]" type="application"> | ||
<component bom-ref="pkg:golang/[email protected]#cmd/uuid" type="application"> | ||
<name>testmod-simple</name> | ||
<version>v0.0.0-20210901192510-dc2d14d2351d</version> | ||
<purl>pkg:golang/[email protected]</purl> | ||
<purl>pkg:golang/[email protected]#cmd/uuid</purl> | ||
<properties> | ||
<property name="cdx:gomod:application:name">uuid</property> | ||
</properties> | ||
</component> | ||
</metadata> | ||
<components> | ||
|
@@ -31,7 +34,7 @@ | |
</component> | ||
</components> | ||
<dependencies> | ||
<dependency ref="pkg:golang/[email protected]"> | ||
<dependency ref="pkg:golang/[email protected]#cmd/uuid"> | ||
<dependency ref="pkg:golang/github.com/google/[email protected]"></dependency> | ||
</dependency> | ||
<dependency ref="pkg:golang/github.com/google/[email protected]"></dependency> | ||
|
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 |
---|---|---|
|
@@ -5,6 +5,9 @@ | |
<name>testmod-simple</name> | ||
<version>v0.0.0-20210716183230-c7ea7c975ab8</version> | ||
<purl>pkg:golang/[email protected]</purl> | ||
<properties> | ||
<property name="cdx:gomod:application:name">001</property> | ||
</properties> | ||
<components> | ||
<component type="file"> | ||
<name>main.go</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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ | |
<name>testmod-vendored</name> | ||
<version>v0.0.0-20210716185931-5c9f3d791930</version> | ||
<purl>pkg:golang/[email protected]</purl> | ||
<properties> | ||
<property name="cdx:gomod:application:name">001</property> | ||
</properties> | ||
</component> | ||
</metadata> | ||
<components> | ||
|
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 |
---|---|---|
|
@@ -5,6 +5,9 @@ | |
<name>testmod-vendored</name> | ||
<version>v0.0.0-20210716185931-5c9f3d791930</version> | ||
<purl>pkg:golang/[email protected]</purl> | ||
<properties> | ||
<property name="cdx:gomod:application:name">001</property> | ||
</properties> | ||
<components> | ||
<component type="file"> | ||
<name>main.go</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,50 @@ | ||
{ | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.3", | ||
"serialNumber": "urn:uuid:26ccca90-9735-44e8-bad6-59967428dec0", | ||
"serialNumber": "urn:uuid:2df66088-ff65-4895-b7ed-8b980e6c677f", | ||
"version": 1, | ||
"metadata": { | ||
"timestamp": "2021-09-19T16:20:21Z", | ||
"timestamp": "2021-09-25T19:52:57Z", | ||
"tools": [ | ||
{ | ||
"vendor": "CycloneDX", | ||
"name": "cyclonedx-gomod", | ||
"version": "v0.0.0-20210919172430-96bd0c538cce", | ||
"version": "v0.0.0-20210925214913-cdaccfe30cb0", | ||
"hashes": [ | ||
{ | ||
"alg": "MD5", | ||
"content": "f09d9d5ec8a3070ef06c8a716ef58206" | ||
"content": "d6c2bf92f7d13841ed21d9c409cf7cf4" | ||
}, | ||
{ | ||
"alg": "SHA-1", | ||
"content": "6a76da80a00b8ce762019cb132c576e1dd485e6e" | ||
"content": "cf9246e05f2416552edbf4b40ef8c3df259ed751" | ||
}, | ||
{ | ||
"alg": "SHA-256", | ||
"content": "b796ac65d8c21b987c2b4a88b329fa56a9b9e79859292701d1767f627c926724" | ||
"content": "890a85574c7f68b950f5bc5c08e5a3c32c06e8103de168d5721ec2dcc49fd3b9" | ||
}, | ||
{ | ||
"alg": "SHA-384", | ||
"content": "6814ac9dace7d2aeec9a2d9fe11e0c877e71e2852d47a84560db16b5d1a351371773bfa09ba952a4a5b18f78c7d53cd9" | ||
"content": "04d28e89523d14fc7dd32c54c4bdbbe99ac12fee427ff69d56ff3f9d98bde3880ab2b77520ff19fd620ab84d39920380" | ||
}, | ||
{ | ||
"alg": "SHA-512", | ||
"content": "e73d97ccaac30c039428e688a095efc1c525a8476e12ceb69b26a425defbc786ef09a80a241b7a6de52fb8c38bf9f06a23b971b2344b93e61f88597b4d34d743" | ||
"content": "ddfce73b8949a2d7878f1e9154cfc1228cb16cf55c6a7e57583cdc9ac286e653e8e285a64fda677bd8bc5d83dc85e1c1c54b630f2ab31c69881b1c09bf68538b" | ||
} | ||
] | ||
} | ||
], | ||
"component": { | ||
"bom-ref": "pkg:golang/k8s.io/[email protected]", | ||
"bom-ref": "pkg:golang/k8s.io/[email protected]#cmd/minikube", | ||
"type": "application", | ||
"name": "k8s.io/minikube", | ||
"version": "v1.23.1", | ||
"purl": "pkg:golang/k8s.io/[email protected]", | ||
"purl": "pkg:golang/k8s.io/[email protected]#cmd/minikube", | ||
"properties": [ | ||
{ | ||
"name": "cdx:gomod:application:name", | ||
"value": "minikube" | ||
}, | ||
{ | ||
"name": "cdx:gomod:build:env:CGO_ENABLED", | ||
"value": "1" | ||
|
@@ -3728,7 +3732,7 @@ | |
], | ||
"dependencies": [ | ||
{ | ||
"ref": "pkg:golang/k8s.io/[email protected]", | ||
"ref": "pkg:golang/k8s.io/[email protected]#cmd/minikube", | ||
"dependsOn": [ | ||
"pkg:golang/cloud.google.com/[email protected]", | ||
"pkg:golang/cloud.google.com/go/[email protected]", | ||
|
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