Skip to content

When a Package-URL is available, can/should it be used as an spdxId? #1379

@bact

Description

@bact
  1. When a Package-URL is available for a software package, can an SBOM producer use it as an spdxId?

  2. 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"
    }
  3. 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?

  4. If there is such a preference from (3), should the spec document that? (in which chapter/section?)

  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionRequest for info or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions