Here is the example for the JSON LOG, and I want to show some info. in the package.
{
"spdxVersion": "SPDX-2.3",
"dataLicense": "CC0-1.0",
"SPDXID": "SPDXRef-DOCUMENT",
"name": "iron-appmgr-develop.tar.gz",
"documentNamespace": "https://anchore.com/syft/file/iron-appmgr-develop.tar.gz-ec61ad8f-7e7a-4b4e-98a7-b7afe84213da",
"creationInfo": {
"licenseListVersion": "3.20",
"creators": [
"Organization: Anchore, Inc",
"Tool: syft-0.75.0"
],
"created": "2023-03-16T06:43:15Z"
},
"packages": [
{
"name": "libarchive",
"SPDXID": "SPDXRef-Package-rpm-libarchive-2f6f0114cfc5e5a8",
"versionInfo": "0:3.6.1-1.el7",
"downloadLocation": "NOASSERTION",
"sourceInfo": "acquired package info from RPM DB: iron-appmgr-develop/rpms.libarchive.7/libarchive-3.6.1-1.el7.x86_64.rpm",
"licenseConcluded": "LicenseRef-BSD",
"licenseDeclared": "LicenseRef-BSD",
"copyrightText": "NOASSERTION",
"externalRefs": [
{
"referenceCategory": "SECURITY",
"referenceType": "cpe23Type",
"referenceLocator": "cpe:2.3:a:libarchive:libarchive:0\\:3.6.1-1.el7:*:*:*:*:*:*:*"
},
{
"referenceCategory": "PACKAGE-MANAGER",
"referenceType": "purl",
"referenceLocator": "pkg:rpm/libarchive@3.6.1-1.el7?arch=x86_64&epoch=0&upstream=libarchive-3.6.1-1.el7.src.rpm"
}
]
},
{
"name": "libarchive",
"SPDXID": "SPDXRef-Package-rpm-libarchive-505ec624e21867c8",
"versionInfo": "0:3.6.1-1.el8",
"downloadLocation": "NOASSERTION",
"sourceInfo": "acquired package info from RPM DB: iron-appmgr-develop/rpms.libarchive.8/libarchive-3.6.1-1.el8.x86_64.rpm",
"licenseConcluded": "LicenseRef-BSD",
"licenseDeclared": "LicenseRef-BSD",
"copyrightText": "NOASSERTION",
"externalRefs": [
{
"referenceCategory": "SECURITY",
"referenceType": "cpe23Type",
"referenceLocator": "cpe:2.3:a:libarchive:libarchive:0\\:3.6.1-1.el8:*:*:*:*:*:*:*"
},
{
"referenceCategory": "PACKAGE-MANAGER",
"referenceType": "purl",
"referenceLocator": "pkg:rpm/libarchive@3.6.1-1.el8?arch=x86_64&epoch=0&upstream=libarchive-3.6.1-1.el8.src.rpm"
}
]
},
{
"name": "libarchive-devel",
"SPDXID": "SPDXRef-Package-rpm-libarchive-devel-65049410ade5a32b",
"versionInfo": "0:3.6.1-1.el7",
"downloadLocation": "NOASSERTION",
"sourceInfo": "acquired package info from RPM DB: iron-appmgr-develop/rpms.libarchive.7/libarchive-devel-3.6.1-1.el7.x86_64.rpm",
"licenseConcluded": "LicenseRef-BSD",
"licenseDeclared": "LicenseRef-BSD",
"copyrightText": "NOASSERTION",
"externalRefs": [
{
"referenceCategory": "SECURITY",
"referenceType": "cpe23Type",
"referenceLocator": "cpe:2.3:a:libarchive-devel:libarchive-devel:0\\:3.6.1-1.el7:*:*:*:*:*:*:*"
},
{
"referenceCategory": "SECURITY",
"referenceType": "cpe23Type",
"referenceLocator": "cpe:2.3:a:libarchive-devel:libarchive_devel:0\\:3.6.1-1.el7:*:*:*:*:*:*:*"
},
{
"referenceCategory": "SECURITY",
"referenceType": "cpe23Type",
"referenceLocator": "cpe:2.3:a:libarchive_devel:libarchive-devel:0\\:3.6.1-1.el7:*:*:*:*:*:*:*"
},
{
"referenceCategory": "SECURITY",
"referenceType": "cpe23Type",
"referenceLocator": "cpe:2.3:a:libarchive_devel:libarchive_devel:0\\:3.6.1-1.el7:*:*:*:*:*:*:*"
},
{
"referenceCategory": "SECURITY",
"referenceType": "cpe23Type",
"referenceLocator": "cpe:2.3:a:libarchive:libarchive-devel:0\\:3.6.1-1.el7:*:*:*:*:*:*:*"
},
{
"referenceCategory": "SECURITY",
"referenceType": "cpe23Type",
"referenceLocator": "cpe:2.3:a:libarchive:libarchive_devel:0\\:3.6.1-1.el7:*:*:*:*:*:*:*"
},
{
"referenceCategory": "PACKAGE-MANAGER",
"referenceType": "purl",
"referenceLocator": "pkg:rpm/libarchive-devel@3.6.1-1.el7?arch=x86_64&epoch=0&upstream=libarchive-3.6.1-1.el7.src.rpm"
}
]
},
{
"name": "libarchive-devel",
"SPDXID": "SPDXRef-Package-rpm-libarchive-devel-2c9aa4099f7fe8f",
"versionInfo": "0:3.6.1-1.el8",
"downloadLocation": "NOASSERTION",
"sourceInfo": "acquired package info from RPM DB: iron-appmgr-develop/rpms.libarchive.8/libarchive-devel-3.6.1-1.el8.x86_64.rpm",
"licenseConcluded": "LicenseRef-BSD",
"licenseDeclared": "LicenseRef-BSD",
"copyrightText": "NOASSERTION",
"externalRefs": [
{
"referenceCategory": "SECURITY",
"referenceType": "cpe23Type",
"referenceLocator": "cpe:2.3:a:libarchive-devel:libarchive-devel:0\\:3.6.1-1.el8:*:*:*:*:*:*:*"
},
{
"referenceCategory": "SECURITY",
"referenceType": "cpe23Type",
"referenceLocator": "cpe:2.3:a:libarchive-devel:libarchive_devel:0\\:3.6.1-1.el8:*:*:*:*:*:*:*"
},
{
"referenceCategory": "SECURITY",
"referenceType": "cpe23Type",
"referenceLocator": "cpe:2.3:a:libarchive_devel:libarchive-devel:0\\:3.6.1-1.el8:*:*:*:*:*:*:*"
},
{
"referenceCategory": "SECURITY",
"referenceType": "cpe23Type",
"referenceLocator": "cpe:2.3:a:libarchive_devel:libarchive_devel:0\\:3.6.1-1.el8:*:*:*:*:*:*:*"
},
{
"referenceCategory": "SECURITY",
"referenceType": "cpe23Type",
"referenceLocator": "cpe:2.3:a:libarchive:libarchive-devel:0\\:3.6.1-1.el8:*:*:*:*:*:*:*"
},
{
"referenceCategory": "SECURITY",
"referenceType": "cpe23Type",
"referenceLocator": "cpe:2.3:a:libarchive:libarchive_devel:0\\:3.6.1-1.el8:*:*:*:*:*:*:*"
},
{
"referenceCategory": "PACKAGE-MANAGER",
"referenceType": "purl",
"referenceLocator": "pkg:rpm/libarchive-devel@3.6.1-1.el8?arch=x86_64&epoch=0&upstream=libarchive-3.6.1-1.el8.src.rpm"
}
]
}
],
"hasExtractedLicensingInfos": [
{
"licenseId": "LicenseRef-BSD",
"extractedText": "NONE",
"name": "BSD"
}
],
"relationships": [
{
"spdxElementId": "SPDXRef-DOCUMENT",
"relatedSpdxElement": "SPDXRef-DOCUMENT",
"relationshipType": "DESCRIBES"
}
]
}
Thanks!