Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SBOM] Add an API to retrieve the SBOM content for the SBOM accessory #20066

Closed
stonezdj opened this issue Feb 29, 2024 · 0 comments
Closed

[SBOM] Add an API to retrieve the SBOM content for the SBOM accessory #20066

stonezdj opened this issue Feb 29, 2024 · 0 comments
Assignees

Comments

@stonezdj
Copy link
Contributor

Add an API to retrieve the SBOM content for the SBOM accessory
Request Method:

GET /api/v2.0/projects/<projectname>/repositories/<repository>/artifacts/<digest>/additions/sbom

Response:

{
    "spdxVersion": "SPDX-2.3",
    "dataLicense": "CC0-1.0",
    "SPDXID": "SPDXRef-DOCUMENT",
    "name": "alpine:latest",
    "documentNamespace": "<http://aquasecurity.github.io/trivy/container_image/alpine:latest-24fab3cb-05fa-479b-b3b7-f76151354cc3>",
    "creationInfo":{
      "licenseListVersion": "",
      "creators": [
        "Organization: aquasecurity",
        "Tool: trivy-0.44.1"
      ],
      "created": "2023-09-22T07:41:04Z"
    },
    "packages": [
        {
          "name": "alpine",
          "SPDXID": "SPDXRef-OperatingSystem-68bf9b9d283c287a",
          "versionInfo": "3.18.3",
          "downloadLocation": "NONE",
          "copyrightText": "",
          "primaryPackagePurpose": "OPERATING-SYSTEM"
        },
        ...
    ]
    ...
    }
   ...
}
@stonezdj stonezdj self-assigned this Feb 29, 2024
stonezdj pushed a commit to stonezdj/harbor that referenced this issue Apr 7, 2024
   complete task goharbor#20066

Signed-off-by: stonezdj <daojunz@vmware.com>
stonezdj pushed a commit to stonezdj/harbor that referenced this issue Apr 7, 2024
   complete task goharbor#20066

Signed-off-by: stonezdj <daojunz@vmware.com>
stonezdj pushed a commit to stonezdj/harbor that referenced this issue Apr 10, 2024
   complete task goharbor#20066

Signed-off-by: stonezdj <daojunz@vmware.com>
stonezdj pushed a commit to stonezdj/harbor that referenced this issue Apr 10, 2024
   complete task goharbor#20066

Signed-off-by: stonezdj <daojunz@vmware.com>
stonezdj pushed a commit to stonezdj/harbor that referenced this issue Apr 10, 2024
   complete task goharbor#20066

Signed-off-by: stonezdj <daojunz@vmware.com>
stonezdj pushed a commit to stonezdj/harbor that referenced this issue Apr 10, 2024
   complete task goharbor#20066

Signed-off-by: stonezdj <daojunz@vmware.com>
stonezdj pushed a commit to stonezdj/harbor that referenced this issue Apr 10, 2024
   complete task goharbor#20066

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
stonezdj added a commit that referenced this issue Apr 10, 2024
complete task #20066

Signed-off-by: stonezdj <daojunz@vmware.com>
Co-authored-by: stonezdj <daojunz@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant