goharbor / harbor

An open source trusted cloud native registry project that stores, signs, and scans content.

Home Page:https://goharbor.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`No SBOM` logic between SBOM deleted and literally no SBOM generation should be the same

zyyw opened this issue · comments

How to reproduce?

  1. deploy a harbor instance with the latest source code
  2. replicate redis:latest from dockerhub to harbor
  3. select all artifacts of the redis artifacts replicated, and click GENERATE SBOM
  4. delete the first SBOM generated
  5. the No SBOM between SBOM deleted and literally no SBOM generation is not the same regarding layout and hover message
Screenshot 2024-05-31 at 4 16 48 PM

This might be due to red rectangle having sbom_overview of something like below:

  "sbom_overview": {
    "duration": 16,
    "end_time": "2024-05-31T08:11:23.000Z",
    "scan_status": "Success",
    "start_time": "2024-05-31T08:11:06.808Z"
  }

this issue #20320 requires the sbom_overview to return a status to stop refresh