-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13b0ecc
commit 7fc64d7
Showing
5 changed files
with
93 additions
and
153 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
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
156 changes: 68 additions & 88 deletions
156
sbom/internal/formats/spdx22/test-fixtures/snapshot/TestSPDXJSONDirectoryEncoder.golden
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,96 +1,76 @@ | ||
{ | ||
"spdxVersion": "SPDX-2.2", | ||
"dataLicense": "CC0-1.0", | ||
"SPDXID": "SPDXRef-DOCUMENT", | ||
"name": "/some/path", | ||
"documentNamespace": "https://anchore.com/syft/dir/some/path-3005bc26-568d-4d19-80c1-c954ac36b7f8", | ||
"creationInfo": { | ||
"licenseListVersion": "3.16", | ||
"creators": [ | ||
"Organization: Anchore, Inc", | ||
"Tool: syft-v0.42.0-bogus" | ||
], | ||
"created": "2023-01-12T20:22:07Z", | ||
"comment": "" | ||
}, | ||
"packages": [ | ||
"spdxVersion": "SPDX-2.2", | ||
"dataLicense": "CC0-1.0", | ||
"SPDXID": "SPDXRef-DOCUMENT", | ||
"name": "/some/path", | ||
"documentNamespace": "https://anchore.com/syft/dir/some/path-0567e7df-bcf5-4ee0-8565-ca4f9ecc7f0d", | ||
"creationInfo": { | ||
"licenseListVersion": "3.16", | ||
"creators": [ | ||
"Organization: Anchore, Inc", | ||
"Tool: syft-v0.42.0-bogus" | ||
], | ||
"created": "2023-01-26T15:28:14Z" | ||
}, | ||
"packages": [ | ||
{ | ||
"name": "package-1", | ||
"SPDXID": "SPDXRef-Package-python-package-1-1b1d0be59ac59d2c", | ||
"versionInfo": "1.0.1", | ||
"downloadLocation": "NOASSERTION", | ||
"packageVerificationCode": { | ||
"packageVerificationCodeValue": "" | ||
}, | ||
"sourceInfo": "acquired package info from installed python package manifest file: /some/path/pkg1", | ||
"licenseConcluded": "MIT", | ||
"licenseInfoFromFiles": null, | ||
"licenseDeclared": "MIT", | ||
"copyrightText": "NOASSERTION", | ||
"externalRefs": [ | ||
{ | ||
"IsUnpackaged": false, | ||
"name": "package-1", | ||
"SPDXID": "SPDXRef-Package-python-package-1-1b1d0be59ac59d2c", | ||
"versionInfo": "1.0.1", | ||
"downloadLocation": "NOASSERTION", | ||
"IsFilesAnalyzedTagPresent": true, | ||
"packageVerificationCode": { | ||
"packageVerificationCodeValue": "" | ||
}, | ||
"checksums": null, | ||
"sourceInfo": "acquired package info from installed python package manifest file: /some/path/pkg1", | ||
"licenseConcluded": "MIT", | ||
"licenseInfoFromFiles": null, | ||
"licenseDeclared": "MIT", | ||
"copyrightText": "NOASSERTION", | ||
"externalRefs": [ | ||
{ | ||
"referenceCategory": "SECURITY", | ||
"referenceType": "cpe23Type", | ||
"referenceLocator": "cpe:2.3:*:some:package:2:*:*:*:*:*:*:*", | ||
"comment": "" | ||
}, | ||
{ | ||
"referenceCategory": "PACKAGE-MANAGER", | ||
"referenceType": "purl", | ||
"referenceLocator": "a-purl-2", | ||
"comment": "" | ||
} | ||
], | ||
"Files": null, | ||
"annotations": null | ||
"referenceCategory": "SECURITY", | ||
"referenceType": "cpe23Type", | ||
"referenceLocator": "cpe:2.3:*:some:package:2:*:*:*:*:*:*:*" | ||
}, | ||
{ | ||
"IsUnpackaged": false, | ||
"name": "package-2", | ||
"SPDXID": "SPDXRef-Package-deb-package-2-db4abfe497c180d3", | ||
"versionInfo": "2.0.1", | ||
"downloadLocation": "NOASSERTION", | ||
"IsFilesAnalyzedTagPresent": true, | ||
"packageVerificationCode": { | ||
"packageVerificationCodeValue": "" | ||
}, | ||
"checksums": null, | ||
"sourceInfo": "acquired package info from DPKG DB: /some/path/pkg1", | ||
"licenseConcluded": "NONE", | ||
"licenseInfoFromFiles": null, | ||
"licenseDeclared": "NONE", | ||
"copyrightText": "NOASSERTION", | ||
"externalRefs": [ | ||
{ | ||
"referenceCategory": "SECURITY", | ||
"referenceType": "cpe23Type", | ||
"referenceLocator": "cpe:2.3:*:some:package:2:*:*:*:*:*:*:*", | ||
"comment": "" | ||
}, | ||
{ | ||
"referenceCategory": "PACKAGE-MANAGER", | ||
"referenceType": "purl", | ||
"referenceLocator": "pkg:deb/debian/package-2@2.0.1", | ||
"comment": "" | ||
} | ||
], | ||
"Files": null, | ||
"annotations": null | ||
"referenceCategory": "PACKAGE-MANAGER", | ||
"referenceType": "purl", | ||
"referenceLocator": "a-purl-2" | ||
} | ||
], | ||
"files": null, | ||
"hasExtractedLicensingInfos": null, | ||
"relationships": [ | ||
] | ||
}, | ||
{ | ||
"name": "package-2", | ||
"SPDXID": "SPDXRef-Package-deb-package-2-db4abfe497c180d3", | ||
"versionInfo": "2.0.1", | ||
"downloadLocation": "NOASSERTION", | ||
"packageVerificationCode": { | ||
"packageVerificationCodeValue": "" | ||
}, | ||
"sourceInfo": "acquired package info from DPKG DB: /some/path/pkg1", | ||
"licenseConcluded": "NONE", | ||
"licenseInfoFromFiles": null, | ||
"licenseDeclared": "NONE", | ||
"copyrightText": "NOASSERTION", | ||
"externalRefs": [ | ||
{ | ||
"spdxElementId": "SPDXRef-DOCUMENT", | ||
"relatedSpdxElement": "SPDXRef-DOCUMENT", | ||
"relationshipType": "DESCRIBES" | ||
"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" | ||
} | ||
], | ||
"annotations": null, | ||
"snippets": null, | ||
"Reviews": null | ||
] | ||
} | ||
], | ||
"relationships": [ | ||
{ | ||
"spdxElementId": "SPDXRef-DOCUMENT", | ||
"relatedSpdxElement": "SPDXRef-DOCUMENT", | ||
"relationshipType": "DESCRIBES" | ||
} | ||
] | ||
} |
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
Oops, something went wrong.