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] Update existing list artifact API to support list artifact with_sbom_overview #20057

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

Comments

@stonezdj
Copy link
Contributor

Update existing list artifact API to support list artifact with_sbom_overview, if with_sbom_overview is true and the sbom information is in the scan_report, the sbom_overview data should be provided.

[
    {
        "digest": "sha256:1d417d2b74017139bb2bd2a9ff7f6be0c6d9ee25452d70190e3508df8a6a1586",
        "icon": "sha256:0048162a053eef4d4ce3fe7518615bef084403614f8bca43b40ae2e762e11e06",
        "id": 53,
        "labels": null,
        "manifest_media_type": "application/vnd.docker.distribution.manifest.v2+json",
        "media_type": "application/vnd.docker.container.image.v1+json",
        "project_id": 1,
        "pull_time": "2024-01-30T08:08:00.508Z",
        "push_time": "2024-01-30T06:10:44.848Z",
        "repository_id": 22,
        ...
        "sbom_overview": {
            "application/vnd.security.sbom.report+json; version=1.0": {
                "duration": 4,
                "end_time": "2024-01-30T08:07:56.000Z",
                "report_id": "1a6f49a5-17ea-49b4-94ff-f38fc80cc0c8",
                "scan_status": "Stopped",
                "start_time": "2024-01-30T08:07:52.000Z"
                "sbom_digest": "sha256:51a41cec9de9d62ee60e206f5a8a615a028a65653e45539990867417cb486285",
            }
        },
        ...
        "size": 7028041,
        "tags": null,
        "type": "IMAGE"
    }
]
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