mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 07:56:36 +01:00
* [wip] Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * distinct the package metadata functions Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * remove metadata type from package core model Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * incorporate review feedback for names Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add RPM archive metadata and split parser helpers Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * clarify the python package metadata type Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * rename the KB metadata type Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * break hackage and composer types by use case Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * linting fix Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix encoding and decoding for syft-json and cyclonedx Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * bump json schema to 11 Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update cyclonedx-json snapshots Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update cyclonedx-xml snapshots Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update spdx-json snapshots Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update spdx-tv snapshots Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update syft-json snapshots Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * correct metadata type in stack yaml parser test Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix bom-ref redactor for cyclonedx-xml Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add tests for legacy package metadata names Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * regenerate json schema v11 Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix legacy HackageMetadataType reflect type value check Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix linting Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * packagemetadata discovery should account for type shadowing Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix linting Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix cli tests Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * bump json schema version to v12 Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update json schema to incorporate changes from main Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add syft-json legacy config option Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add tests around v11-v12 json decoding Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add docs for SYFT_JSON_LEGACY Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * rename structs to be compliant with new naming scheme Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
227 lines
5.9 KiB
Plaintext
227 lines
5.9 KiB
Plaintext
{
|
|
"spdxVersion": "SPDX-2.3",
|
|
"dataLicense": "CC0-1.0",
|
|
"SPDXID": "SPDXRef-DOCUMENT",
|
|
"name": "user-image-input",
|
|
"documentNamespace":"redacted",
|
|
"creationInfo": {
|
|
"licenseListVersion":"redacted",
|
|
"creators": [
|
|
"Organization: Anchore, Inc",
|
|
"Tool: syft-v0.42.0-bogus"
|
|
],
|
|
"created":"redacted"
|
|
},
|
|
"packages": [
|
|
{
|
|
"name": "package-1",
|
|
"SPDXID": "SPDXRef-Package-python-package-1-80210ebcba92e632",
|
|
"versionInfo": "1.0.1",
|
|
"supplier": "NOASSERTION",
|
|
"downloadLocation": "NOASSERTION",
|
|
"filesAnalyzed": false,
|
|
"sourceInfo": "acquired package info from installed python package manifest file: /somefile-1.txt",
|
|
"licenseConcluded": "NOASSERTION",
|
|
"licenseDeclared": "MIT",
|
|
"copyrightText": "NOASSERTION",
|
|
"externalRefs": [
|
|
{
|
|
"referenceCategory": "SECURITY",
|
|
"referenceType": "cpe23Type",
|
|
"referenceLocator": "cpe:2.3:*:some:package:1:*:*:*:*:*:*:*"
|
|
},
|
|
{
|
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
"referenceType": "purl",
|
|
"referenceLocator": "a-purl-1"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "package-2",
|
|
"SPDXID": "SPDXRef-Package-deb-package-2-4b756c6f6fb127a3",
|
|
"versionInfo": "2.0.1",
|
|
"supplier": "NOASSERTION",
|
|
"downloadLocation": "NOASSERTION",
|
|
"filesAnalyzed": false,
|
|
"sourceInfo": "acquired package info from DPKG DB: /somefile-2.txt",
|
|
"licenseConcluded": "NOASSERTION",
|
|
"licenseDeclared": "NOASSERTION",
|
|
"copyrightText": "NOASSERTION",
|
|
"externalRefs": [
|
|
{
|
|
"referenceCategory": "SECURITY",
|
|
"referenceType": "cpe23Type",
|
|
"referenceLocator": "cpe:2.3:*:some:package:2:*:*:*:*:*:*:*"
|
|
},
|
|
{
|
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
"referenceType": "purl",
|
|
"referenceLocator": "pkg:deb/debian/package-2@2.0.1"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "user-image-input",
|
|
"SPDXID": "SPDXRef-DocumentRoot-Image-user-image-input",
|
|
"versionInfo": "sha256:2731251dc34951c0e50fcc643b4c5f74922dad1a5d98f302b504cf46cd5d9368",
|
|
"supplier": "NOASSERTION",
|
|
"downloadLocation": "NOASSERTION",
|
|
"filesAnalyzed": false,
|
|
"checksums": [
|
|
{
|
|
"algorithm": "SHA256",
|
|
"checksumValue": "2731251dc34951c0e50fcc643b4c5f74922dad1a5d98f302b504cf46cd5d9368"
|
|
}
|
|
],
|
|
"externalRefs": [
|
|
{
|
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
"referenceType": "purl",
|
|
"referenceLocator": "pkg:oci/user-image-input@sha256:2731251dc34951c0e50fcc643b4c5f74922dad1a5d98f302b504cf46cd5d9368?arch="
|
|
}
|
|
],
|
|
"primaryPackagePurpose": "CONTAINER"
|
|
}
|
|
],
|
|
"files": [
|
|
{
|
|
"fileName": "/a1/f6",
|
|
"SPDXID": "SPDXRef-File-a1-f6-9c2f7510199b17f6",
|
|
"fileTypes": [
|
|
"OTHER"
|
|
],
|
|
"checksums": [
|
|
{
|
|
"algorithm": "SHA1",
|
|
"checksumValue": "0000000000000000000000000000000000000000"
|
|
}
|
|
],
|
|
"licenseConcluded": "NOASSERTION",
|
|
"copyrightText": ""
|
|
},
|
|
{
|
|
"fileName": "/d1/f3",
|
|
"SPDXID": "SPDXRef-File-d1-f3-c6f5b29dca12661f",
|
|
"fileTypes": [
|
|
"OTHER"
|
|
],
|
|
"checksums": [
|
|
{
|
|
"algorithm": "SHA1",
|
|
"checksumValue": "0000000000000000000000000000000000000000"
|
|
}
|
|
],
|
|
"licenseConcluded": "NOASSERTION",
|
|
"copyrightText": ""
|
|
},
|
|
{
|
|
"fileName": "/d2/f4",
|
|
"SPDXID": "SPDXRef-File-d2-f4-c641caa71518099f",
|
|
"fileTypes": [
|
|
"OTHER"
|
|
],
|
|
"checksums": [
|
|
{
|
|
"algorithm": "SHA1",
|
|
"checksumValue": "0000000000000000000000000000000000000000"
|
|
}
|
|
],
|
|
"licenseConcluded": "NOASSERTION",
|
|
"copyrightText": ""
|
|
},
|
|
{
|
|
"fileName": "/f1",
|
|
"SPDXID": "SPDXRef-File-f1-5265a4dde3edbf7c",
|
|
"fileTypes": [
|
|
"OTHER"
|
|
],
|
|
"checksums": [
|
|
{
|
|
"algorithm": "SHA1",
|
|
"checksumValue": "0000000000000000000000000000000000000000"
|
|
}
|
|
],
|
|
"licenseConcluded": "NOASSERTION",
|
|
"copyrightText": ""
|
|
},
|
|
{
|
|
"fileName": "/f2",
|
|
"SPDXID": "SPDXRef-File-f2-f9e49132a4b96ccd",
|
|
"fileTypes": [
|
|
"OTHER"
|
|
],
|
|
"checksums": [
|
|
{
|
|
"algorithm": "SHA1",
|
|
"checksumValue": "0000000000000000000000000000000000000000"
|
|
}
|
|
],
|
|
"licenseConcluded": "NOASSERTION",
|
|
"copyrightText": ""
|
|
},
|
|
{
|
|
"fileName": "/z1/f5",
|
|
"SPDXID": "SPDXRef-File-z1-f5-839d99ee67d9d174",
|
|
"fileTypes": [
|
|
"OTHER"
|
|
],
|
|
"checksums": [
|
|
{
|
|
"algorithm": "SHA1",
|
|
"checksumValue": "0000000000000000000000000000000000000000"
|
|
}
|
|
],
|
|
"licenseConcluded": "NOASSERTION",
|
|
"copyrightText": ""
|
|
}
|
|
],
|
|
"relationships": [
|
|
{
|
|
"spdxElementId": "SPDXRef-Package-python-package-1-80210ebcba92e632",
|
|
"relatedSpdxElement": "SPDXRef-File-f1-5265a4dde3edbf7c",
|
|
"relationshipType": "CONTAINS"
|
|
},
|
|
{
|
|
"spdxElementId": "SPDXRef-Package-python-package-1-80210ebcba92e632",
|
|
"relatedSpdxElement": "SPDXRef-File-z1-f5-839d99ee67d9d174",
|
|
"relationshipType": "CONTAINS"
|
|
},
|
|
{
|
|
"spdxElementId": "SPDXRef-Package-python-package-1-80210ebcba92e632",
|
|
"relatedSpdxElement": "SPDXRef-File-a1-f6-9c2f7510199b17f6",
|
|
"relationshipType": "CONTAINS"
|
|
},
|
|
{
|
|
"spdxElementId": "SPDXRef-Package-python-package-1-80210ebcba92e632",
|
|
"relatedSpdxElement": "SPDXRef-File-d2-f4-c641caa71518099f",
|
|
"relationshipType": "CONTAINS"
|
|
},
|
|
{
|
|
"spdxElementId": "SPDXRef-Package-python-package-1-80210ebcba92e632",
|
|
"relatedSpdxElement": "SPDXRef-File-d1-f3-c6f5b29dca12661f",
|
|
"relationshipType": "CONTAINS"
|
|
},
|
|
{
|
|
"spdxElementId": "SPDXRef-Package-python-package-1-80210ebcba92e632",
|
|
"relatedSpdxElement": "SPDXRef-File-f2-f9e49132a4b96ccd",
|
|
"relationshipType": "CONTAINS"
|
|
},
|
|
{
|
|
"spdxElementId": "SPDXRef-DocumentRoot-Image-user-image-input",
|
|
"relatedSpdxElement": "SPDXRef-Package-python-package-1-80210ebcba92e632",
|
|
"relationshipType": "CONTAINS"
|
|
},
|
|
{
|
|
"spdxElementId": "SPDXRef-DocumentRoot-Image-user-image-input",
|
|
"relatedSpdxElement": "SPDXRef-Package-deb-package-2-4b756c6f6fb127a3",
|
|
"relationshipType": "CONTAINS"
|
|
},
|
|
{
|
|
"spdxElementId": "SPDXRef-DOCUMENT",
|
|
"relatedSpdxElement": "SPDXRef-DocumentRoot-Image-user-image-input",
|
|
"relationshipType": "DESCRIBES"
|
|
}
|
|
]
|
|
}
|