Skip to content

Update trivy to 0.43.1 and add CS_TRIVY_JAVA_DB variable

Igor Frenkel requested to merge 404587-add-trivy-java-db-variable into master

What does this MR do?

Allow users to specify a java database which trivy can use to scan java projects so that users can use container scanning in offline networks.

This MR bumps the version of trivy supported and adds functionality to get the value of CS_TRIVY_JAVA_DB environment variable and pass it to trivy.

Testing

A test job was added to test how the analyzer passes the environment variable to trivy: https://gitlab.com/gitlab-org/security-products/analyzers/container-scanning/-/blob/d37b55298c138a939e689504f0f6544097caef3a/.gitlab/ci/integration-test.yml#L117-157

What are the relevant issue numbers?

Add workaround in Container Scanning to allow u... (gitlab-org/gitlab#404587 - closed)

Does this MR meet the acceptance criteria?

Edited by Adam Cohen

Merge request reports