-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add second generation of generic cataloger Signed-off-by: Alex Goodman <[email protected]> * upgrade aplm cataloger to use generic.Cataloger Signed-off-by: Alex Goodman <[email protected]> * remove pacakge found-by attribute from the definition of a package ID Signed-off-by: Alex Goodman <[email protected]> Signed-off-by: Alex Goodman <[email protected]>
- Loading branch information
Showing
40 changed files
with
495 additions
and
245 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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.4", | ||
"serialNumber": "urn:uuid:3ea3363f-3945-4859-9ba1-9a395983d248", | ||
"serialNumber": "urn:uuid:f426926b-4867-4b52-9142-23997f685f2c", | ||
"version": 1, | ||
"metadata": { | ||
"timestamp": "2022-05-23T12:05:00-07:00", | ||
"timestamp": "2022-10-24T09:54:37-04:00", | ||
"tools": [ | ||
{ | ||
"vendor": "anchore", | ||
|
@@ -20,7 +20,7 @@ | |
}, | ||
"components": [ | ||
{ | ||
"bom-ref": "b85dbb4e6ece5082", | ||
"bom-ref": "e624319940d8d36a", | ||
"type": "library", | ||
"name": "package-1", | ||
"version": "1.0.1", | ||
|
@@ -57,7 +57,7 @@ | |
] | ||
}, | ||
{ | ||
"bom-ref": "pkg:deb/debian/[email protected]?package-id=ceda99598967ae8d", | ||
"bom-ref": "pkg:deb/debian/[email protected]?package-id=b8645f4ac2a0891e", | ||
"type": "library", | ||
"name": "package-2", | ||
"version": "2.0.1", | ||
|
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,10 @@ | ||
{ | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.4", | ||
"serialNumber": "urn:uuid:c825402b-bbfa-4ad5-81b1-6a8332a6a8b6", | ||
"serialNumber": "urn:uuid:41bbbcc7-694d-4b07-a678-0afb67dabdf9", | ||
"version": 1, | ||
"metadata": { | ||
"timestamp": "2022-05-23T12:05:01-07:00", | ||
"timestamp": "2022-10-24T09:54:37-04:00", | ||
"tools": [ | ||
{ | ||
"vendor": "anchore", | ||
|
@@ -13,15 +13,15 @@ | |
} | ||
], | ||
"component": { | ||
"bom-ref": "e779c1ed804ba529", | ||
"bom-ref": "522dc6b135a55bb4", | ||
"type": "container", | ||
"name": "user-image-input", | ||
"version": "sha256:2731251dc34951c0e50fcc643b4c5f74922dad1a5d98f302b504cf46cd5d9368" | ||
} | ||
}, | ||
"components": [ | ||
{ | ||
"bom-ref": "2a46171f91c8d4bc", | ||
"bom-ref": "5ffee24fb164cffc", | ||
"type": "library", | ||
"name": "package-1", | ||
"version": "1.0.1", | ||
|
@@ -53,7 +53,7 @@ | |
}, | ||
{ | ||
"name": "syft:location:0:layerID", | ||
"value": "sha256:cd8f3884f1211d65c19ce5bbc5174bcd2ce8ba96b63e5b3693969a53279c4405" | ||
"value": "sha256:fb6beecb75b39f4bb813dbf177e501edd5ddb3e69bb45cedeb78c676ee1b7a59" | ||
}, | ||
{ | ||
"name": "syft:location:0:path", | ||
|
@@ -62,7 +62,7 @@ | |
] | ||
}, | ||
{ | ||
"bom-ref": "pkg:deb/debian/[email protected]?package-id=ae77680e9b1d087e", | ||
"bom-ref": "pkg:deb/debian/[email protected]?package-id=8b16570b2b4155c3", | ||
"type": "library", | ||
"name": "package-2", | ||
"version": "2.0.1", | ||
|
@@ -83,7 +83,7 @@ | |
}, | ||
{ | ||
"name": "syft:location:0:layerID", | ||
"value": "sha256:42d2ea51c688e6dc7be81a305acbe006d27a6ef0c26ae3888fd0d4ce44f69265" | ||
"value": "sha256:319b588ce64253a87b533c8ed01cf0025e0eac98e7b516e12532957e1244fdec" | ||
}, | ||
{ | ||
"name": "syft:location:0:path", | ||
|
Binary file modified
BIN
+0 Bytes
(100%)
syft/formats/cyclonedxjson/test-fixtures/snapshot/stereoscope-fixture-image-simple.golden
Binary file not shown.
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,7 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.4" serialNumber="urn:uuid:a259c072-aaaf-4a3f-a707-49f691b1e9d9" version="1"> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.4" serialNumber="urn:uuid:19df9583-d8b7-4683-81a6-e57cc8841321" version="1"> | ||
<metadata> | ||
<timestamp>2022-05-23T12:02:41-07:00</timestamp> | ||
<timestamp>2022-10-24T09:54:54-04:00</timestamp> | ||
<tools> | ||
<tool> | ||
<vendor>anchore</vendor> | ||
|
@@ -14,7 +14,7 @@ | |
</component> | ||
</metadata> | ||
<components> | ||
<component bom-ref="b85dbb4e6ece5082" type="library"> | ||
<component bom-ref="e624319940d8d36a" type="library"> | ||
<name>package-1</name> | ||
<version>1.0.1</version> | ||
<licenses> | ||
|
@@ -32,7 +32,7 @@ | |
<property name="syft:location:0:path">/some/path/pkg1</property> | ||
</properties> | ||
</component> | ||
<component bom-ref="pkg:deb/debian/[email protected]?package-id=ceda99598967ae8d" type="library"> | ||
<component bom-ref="pkg:deb/debian/[email protected]?package-id=b8645f4ac2a0891e" type="library"> | ||
<name>package-2</name> | ||
<version>2.0.1</version> | ||
<cpe>cpe:2.3:*:some:package:2:*:*:*:*:*:*:*</cpe> | ||
|
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,21 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.4" serialNumber="urn:uuid:155802bd-09e5-4b95-9485-826b94447495" version="1"> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.4" serialNumber="urn:uuid:5342511c-3580-4cae-b373-20bbf14ba7a3" version="1"> | ||
<metadata> | ||
<timestamp>2022-05-23T12:02:42-07:00</timestamp> | ||
<timestamp>2022-10-24T09:54:54-04:00</timestamp> | ||
<tools> | ||
<tool> | ||
<vendor>anchore</vendor> | ||
<name>syft</name> | ||
<version>v0.42.0-bogus</version> | ||
</tool> | ||
</tools> | ||
<component bom-ref="e779c1ed804ba529" type="container"> | ||
<component bom-ref="522dc6b135a55bb4" type="container"> | ||
<name>user-image-input</name> | ||
<version>sha256:2731251dc34951c0e50fcc643b4c5f74922dad1a5d98f302b504cf46cd5d9368</version> | ||
</component> | ||
</metadata> | ||
<components> | ||
<component bom-ref="2a46171f91c8d4bc" type="library"> | ||
<component bom-ref="5ffee24fb164cffc" type="library"> | ||
<name>package-1</name> | ||
<version>1.0.1</version> | ||
<licenses> | ||
|
@@ -30,11 +30,11 @@ | |
<property name="syft:package:language">python</property> | ||
<property name="syft:package:metadataType">PythonPackageMetadata</property> | ||
<property name="syft:package:type">python</property> | ||
<property name="syft:location:0:layerID">sha256:cd8f3884f1211d65c19ce5bbc5174bcd2ce8ba96b63e5b3693969a53279c4405</property> | ||
<property name="syft:location:0:layerID">sha256:fb6beecb75b39f4bb813dbf177e501edd5ddb3e69bb45cedeb78c676ee1b7a59</property> | ||
<property name="syft:location:0:path">/somefile-1.txt</property> | ||
</properties> | ||
</component> | ||
<component bom-ref="pkg:deb/debian/[email protected]?package-id=ae77680e9b1d087e" type="library"> | ||
<component bom-ref="pkg:deb/debian/[email protected]?package-id=8b16570b2b4155c3" type="library"> | ||
<name>package-2</name> | ||
<version>2.0.1</version> | ||
<cpe>cpe:2.3:*:some:package:2:*:*:*:*:*:*:*</cpe> | ||
|
@@ -43,7 +43,7 @@ | |
<property name="syft:package:foundBy">the-cataloger-2</property> | ||
<property name="syft:package:metadataType">DpkgMetadata</property> | ||
<property name="syft:package:type">deb</property> | ||
<property name="syft:location:0:layerID">sha256:42d2ea51c688e6dc7be81a305acbe006d27a6ef0c26ae3888fd0d4ce44f69265</property> | ||
<property name="syft:location:0:layerID">sha256:319b588ce64253a87b533c8ed01cf0025e0eac98e7b516e12532957e1244fdec</property> | ||
<property name="syft:location:0:path">/somefile-2.txt</property> | ||
<property name="syft:metadata:installedSize">0</property> | ||
</properties> | ||
|
Binary file modified
BIN
+0 Bytes
(100%)
syft/formats/cyclonedxxml/test-fixtures/snapshot/stereoscope-fixture-image-simple.golden
Binary file not shown.
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
Binary file modified
BIN
+0 Bytes
(100%)
syft/formats/spdx22json/test-fixtures/snapshot/stereoscope-fixture-image-simple.golden
Binary file not shown.
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,16 +2,16 @@ SPDXVersion: SPDX-2.2 | |
DataLicense: CC0-1.0 | ||
SPDXID: SPDXRef-DOCUMENT | ||
DocumentName: /some/path | ||
DocumentNamespace: https://anchore.com/syft/dir/some/path-c6b20d03-1478-4513-9feb-1ec427d4b547 | ||
LicenseListVersion: 3.17 | ||
DocumentNamespace: https://anchore.com/syft/dir/some/path-a4e58523-00d0-4135-9d21-cf586fbd340c | ||
LicenseListVersion: 3.18 | ||
Creator: Organization: Anchore, Inc | ||
Creator: Tool: syft-v0.42.0-bogus | ||
Created: 2022-05-24T22:51:02Z | ||
Created: 2022-10-24T13:53:52Z | ||
|
||
##### Package: package-2 | ||
|
||
PackageName: package-2 | ||
SPDXID: SPDXRef-Package-deb-package-2-ceda99598967ae8d | ||
SPDXID: SPDXRef-Package-deb-package-2-b8645f4ac2a0891e | ||
PackageVersion: 2.0.1 | ||
PackageDownloadLocation: NOASSERTION | ||
FilesAnalyzed: false | ||
|
@@ -24,7 +24,7 @@ ExternalRef: PACKAGE_MANAGER purl pkg:deb/debian/[email protected] | |
##### Package: package-1 | ||
|
||
PackageName: package-1 | ||
SPDXID: SPDXRef-Package-python-package-1-b85dbb4e6ece5082 | ||
SPDXID: SPDXRef-Package-python-package-1-e624319940d8d36a | ||
PackageVersion: 1.0.1 | ||
PackageDownloadLocation: NOASSERTION | ||
FilesAnalyzed: false | ||
|
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,16 +2,16 @@ SPDXVersion: SPDX-2.2 | |
DataLicense: CC0-1.0 | ||
SPDXID: SPDXRef-DOCUMENT | ||
DocumentName: user-image-input | ||
DocumentNamespace: https://anchore.com/syft/image/user-image-input-12a877bc-fe9b-40ef-aa9c-4d34f108d0d6 | ||
LicenseListVersion: 3.17 | ||
DocumentNamespace: https://anchore.com/syft/image/user-image-input-639f628a-5f8b-4050-a69e-90c85f0d7837 | ||
LicenseListVersion: 3.18 | ||
Creator: Organization: Anchore, Inc | ||
Creator: Tool: syft-v0.42.0-bogus | ||
Created: 2022-05-24T22:51:02Z | ||
Created: 2022-10-24T13:53:53Z | ||
|
||
##### Package: package-2 | ||
|
||
PackageName: package-2 | ||
SPDXID: SPDXRef-Package-deb-package-2-ae77680e9b1d087e | ||
SPDXID: SPDXRef-Package-deb-package-2-8b16570b2b4155c3 | ||
PackageVersion: 2.0.1 | ||
PackageDownloadLocation: NOASSERTION | ||
FilesAnalyzed: false | ||
|
@@ -24,7 +24,7 @@ ExternalRef: PACKAGE_MANAGER purl pkg:deb/debian/[email protected] | |
##### Package: package-1 | ||
|
||
PackageName: package-1 | ||
SPDXID: SPDXRef-Package-python-package-1-2a46171f91c8d4bc | ||
SPDXID: SPDXRef-Package-python-package-1-5ffee24fb164cffc | ||
PackageVersion: 1.0.1 | ||
PackageDownloadLocation: NOASSERTION | ||
FilesAnalyzed: false | ||
|
Binary file modified
BIN
+0 Bytes
(100%)
syft/formats/spdx22tagvalue/test-fixtures/snapshot/stereoscope-fixture-image-simple.golden
Binary file not shown.
Oops, something went wrong.