-
Notifications
You must be signed in to change notification settings - Fork 5k
FIX: Display 'No SBOM' in multi-arch images in HarborUI #21459
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
Conversation
* Updated the `hasChild` method to check for the presence of `child_digest` in the `references` array. * This ensures that SBOMs are correctly displayed for multi-arch images, where child artifacts may contain their own SBOMs. * Previously, No SBOM label was displayed for multi-arch images. Signed-off-by: bupd <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #21459 +/- ##
==========================================
+ Coverage 45.36% 46.49% +1.12%
==========================================
Files 244 253 +9
Lines 13333 14236 +903
Branches 2719 2925 +206
==========================================
+ Hits 6049 6619 +570
- Misses 6983 7266 +283
- Partials 301 351 +50
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Hi @bupd , |
|
@MinerYang Updated the PR description with screenshot. Thanks |
xuelichao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
hope we can merge this one. |
OrlinVasilev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
fix: handle multi-arch images with SBOMs in HarborUI * Updated the `hasChild` method to check for the presence of `child_digest` in the `references` array. * This ensures that SBOMs are correctly displayed for multi-arch images, where child artifacts may contain their own SBOMs. * Previously, No SBOM label was displayed for multi-arch images. Signed-off-by: bupd <[email protected]>
fix: handle multi-arch images with SBOMs in HarborUI * Updated the `hasChild` method to check for the presence of `child_digest` in the `references` array. * This ensures that SBOMs are correctly displayed for multi-arch images, where child artifacts may contain their own SBOMs. * Previously, No SBOM label was displayed for multi-arch images. Signed-off-by: bupd <[email protected]>
Thank you for contributing to Harbor!
Comprehensive Summary of your change
Changes made
hasChildmethod to check for the presence of child images. aka. detecting multi-arch images.Screenshots
Before
After (SBOM column is empty for multi-arch images)
Issue being fixed
Fixes #21424
Please indicate you've done the following: