Skip to content

feat(image): add hardened image recommendation support#262

Closed
ruromero wants to merge 1 commit into
redhat-developer:mainfrom
ruromero:feat/hardened-image-support
Closed

feat(image): add hardened image recommendation support#262
ruromero wants to merge 1 commit into
redhat-developer:mainfrom
ruromero:feat/hardened-image-support

Conversation

@ruromero

Copy link
Copy Markdown
Collaborator

Summary

  • Introduce RecommendationInfo record to distinguish hardened image recommendations from UBI recommendations
  • Refactor getRecommendation() to check the recommendations section first (Hummingbird hardened images) before falling back to legacy sources path
  • Add extractImageRefFromPurl() helper to reconstruct image references from PURL qualifiers
  • Show "Switch to hardened image" vs "Switch to Red Hat UBI" in hover text and tooltips
  • Conditionally hide UBI intention action for hardened image recommendations
  • Bump trustify-da-api-spec to 2.0.10-SNAPSHOT and trustify-da-java-client to 0.0.19-SNAPSHOT

Test plan

  • Verify Dockerfile annotations show "Switch to hardened image" for images with Hummingbird recommendations
  • Verify Dockerfile annotations show "Switch to Red Hat UBI" for images with trusted-content recommendations
  • Verify UBI intention action is hidden when a hardened image recommendation is present
  • Verify no regressions in existing image analysis functionality

🤖 Generated with Claude Code

Introduce RecommendationInfo record to distinguish hardened vs UBI
recommendations. The annotator now checks the recommendations section
first (Hummingbird hardened path) before falling back to legacy sources.
Hover text shows "Switch to hardened image" vs "Switch to Red Hat UBI"
and the UBI intention action is conditionally hidden for hardened images.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ruromero

Copy link
Copy Markdown
Collaborator Author

Superseded by #261 — the dependency version bump was contributed to adva-s's branch via a-oren#1

@ruromero ruromero closed this Jun 25, 2026
@sonarqubecloud

Copy link
Copy Markdown

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

Successfully merging this pull request may close these issues.

1 participant