-
When a Package-URL is available for a software package, can an SBOM producer use it as an spdxId?
-
Should any of these elements (a), (b), and (c) be considered equivalent to another element?
(a)
{
"type": "software_Package",
"spdxId": "...#Package-1",
"externalIdentifier": [
{
"externalIdentifierType": "packageUrl",
"identifier": "pkg:pypi/requests@2.28.0"
}
],
"name": "requests"
}
(b)
{
"type": "software_Package",
"spdxId": "...#Package-2",
"software_packageUrl": "pkg:pypi/requests@2.28.0",
"name": "requests"
}
(c)
{
"type": "software_Package",
"spdxId": "pkg:pypi/requests@2.28.0",
"name": "requests"
}
-
From the spec perspective which one, (a), (b), or (c), is a recommended way to record a software package that happens to have a Package-URL?
-
If there is such a preference from (3), should the spec document that? (in which chapter/section?)
-
Do SBOM consumers support Package-URL scheme in spdxId?
There can be at least two contexts that relevant to these questions:
i) in-document element deduplication (including in SBOM merging use case)
ii) cross-document references
When a Package-URL is available for a software package, can an SBOM producer use it as an spdxId?
Should any of these elements (a), (b), and (c) be considered equivalent to another element?
(a)
{ "type": "software_Package", "spdxId": "...#Package-1", "externalIdentifier": [ { "externalIdentifierType": "packageUrl", "identifier": "pkg:pypi/requests@2.28.0" } ], "name": "requests" }(b)
{ "type": "software_Package", "spdxId": "...#Package-2", "software_packageUrl": "pkg:pypi/requests@2.28.0", "name": "requests" }(c)
{ "type": "software_Package", "spdxId": "pkg:pypi/requests@2.28.0", "name": "requests" }From the spec perspective which one, (a), (b), or (c), is a recommended way to record a software package that happens to have a Package-URL?
If there is such a preference from (3), should the spec document that? (in which chapter/section?)
Do SBOM consumers support Package-URL scheme in spdxId?
There can be at least two contexts that relevant to these questions:
i) in-document element deduplication (including in SBOM merging use case)
ii) cross-document references