Skip to content

Add support for authors, manufacturer and supplier in sbom metadata #122

Closed

Description

@coderpatros

Example of authors metadata in JSON format

{
  "bomFormat": "CycloneDX",
  "specVersion": "1.2",
  "serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
  "version": 1,
  "metadata": {
    "authors": [
      {
        "name": "Samantha Wright",
        "email": "[email protected]",
        "phone": "800-555-1212"
      }
    ]
  },
  "components": []
}

Example of manufacturer metadata in JSON format

{
  "bomFormat": "CycloneDX",
  "specVersion": "1.2",
  "serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
  "version": 1,
  "metadata": {
    "manufacture": {
      "name": "Acme, Inc.",
      "url": [
        "https://example.com"
      ],
      "contact": [
        {
          "name": "Acme Professional Services",
          "email": "[email protected]"
        }
      ]
    }
  },
  "components": []
}

Example of supplier metadata in JSON format...

{
  "bomFormat": "CycloneDX",
  "specVersion": "1.2",
  "serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
  "version": 1,
  "metadata": {
    "supplier": {
      "name": "Acme, Inc.",
      "url": [
        "https://example.com"
      ],
      "contact": [
        {
          "name": "Acme Distribution",
          "email": "[email protected]"
        }
      ]
    }
  },
  "components": []
}

Manufacturer and supplier are both "organizationalEntity" elements. Author, manufacturer contact and supplier contact are all "organizationalContact" elements. They should be created as a class under models much like component is.

Activity

  1. coderpatros commented on Oct 10, 2020

    @coderpatros
    MemberAuthor

    @c0d3nh4ck it's probably good to start off with authors as one PR. Then tackle the others in other PRs.

  2. c0d3nh4ck commented on Oct 13, 2020

    @c0d3nh4ck
    Contributor

    @coderpatros #123 I have added support for authors in metadata and it passed all the checks but we need to verify if it is being displayed properly. As currently there is not metadata in the test cases so, we can't check if it is being displayed properly. We need to add some test cases for the metadata part too.

  3. madpah commented on Sep 16, 2021

    @madpah
    Collaborator

    As cyclonedx-python has been split into a library, this issue now should reside in the cyclonedx-python-lib project.

    See CycloneDX/cyclonedx-python-lib#6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions