Skip to content

Handle unavailable images in vulnerability assessment#195

Merged
LarsLaskowski merged 1 commit into
mainfrom
enhancement/friendly_trivy_message_manifest_unknown
Jul 22, 2026
Merged

Handle unavailable images in vulnerability assessment#195
LarsLaskowski merged 1 commit into
mainfrom
enhancement/friendly_trivy_message_manifest_unknown

Conversation

@LarsLaskowski

Copy link
Copy Markdown
Owner

Added VulnerabilityAssessmentStatus.Unavailable for images missing from the registry. Mapped ExternalOperationStatus.NotFound to this status in VulnerabilityEnrichmentService. Updated ApplicationViewService and VulnerabilityDisplayFormatter to support the new status. Enhanced TrivyVulnerabilityProvider to detect manifest-not-found errors, log them, and return NotFound with a user-friendly message. Added unit tests for both TrivyVulnerabilityProvider and VulnerabilityEnrichmentService to verify correct handling of unavailable images.

Added VulnerabilityAssessmentStatus.Unavailable for images missing from the registry. Mapped ExternalOperationStatus.NotFound to this status in VulnerabilityEnrichmentService. Updated ApplicationViewService and VulnerabilityDisplayFormatter to support the new status. Enhanced TrivyVulnerabilityProvider to detect manifest-not-found errors, log them, and return NotFound with a user-friendly message. Added unit tests for both TrivyVulnerabilityProvider and VulnerabilityEnrichmentService to verify correct handling of unavailable images.
@LarsLaskowski LarsLaskowski self-assigned this Jul 22, 2026
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
77.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@LarsLaskowski
LarsLaskowski merged commit fcf98b6 into main Jul 22, 2026
3 of 4 checks passed
@LarsLaskowski
LarsLaskowski deleted the enhancement/friendly_trivy_message_manifest_unknown branch July 22, 2026 15:55
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