Skip to content
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

Backport: Handle breaking change in Trivy server API #3785

Merged
merged 1 commit into from
Jun 1, 2024

Commits on Jun 1, 2024

  1. Handle breaking change in Trivy server API

    `Application#libraries` has been renamed to `Application#packages` in Trivy 0.51.2. The `Library` type no longer exists.
    
    It's not possible to tell the Trivy version based on its API. To work around this, we now send both the `packages` and `libraries` fields with redundant information.
    
    Fields that the API does not expect are silently ignored.
    
    Fixes DependencyTrack#3737
    
    Signed-off-by: nscuro <[email protected]>
    nscuro committed Jun 1, 2024
    Configuration menu
    Copy the full SHA
    4902a34 View commit details
    Browse the repository at this point in the history