-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Description
Expected behavior and actual behavior:
When there are multiple artefacts for a tag, if any artefact has a SBOM the repo artefact list should indicate that a SBOM exists in the same way it does for tags with single artefacts. If this is not possible/desired, this should at least be called out in the Harbor documentation.
Screenshot of UI behaviour for single artefact tag (good/expected):
Actual behavior:
When there are multiple artefacts for a tag, the repo artefact list always displays "No SBOM", even when there is one. The user has to click through to the specific OCI index artefact's list to see if any SBOMs exist.
Screenshot of UI behaviour for multiple artefact tag (bad):
Screenshot of UI when clicked through to the OCI index artefact's list showing that there are SBOMs:
Steps to reproduce the problem:
- Build multi-arch container (or container with attached provenance artefact).
- Push to Harbor.
- Go to the project repo in Harbor, select checkbox for the multi-arch image you've just pushed, and click "Generate SBOM". It will look like either nothing has happened or it has silently failed.
- Refresh the page, the "SBOM" column will now say "No SBOM" (or sometimes will just be blank).
- For the image in question, click on the folder icon ("Click to view this OCI index's artifact list") next to it.
- See that there are SBOMs for at least one artefact.
This also happens with "Generate SBOM on push" project setting enabled.
Versions:
Please specify the versions of following systems.
- harbor version: v2.14.2-3a2df66d
- docker engine version: version 27.4.1, build b9d17ea
- docker-compose version: v2.32.1
