Trivy Scan Images with Java Code, Version > 0.37.2
In order to be able to scan images with Java code with the Trivy Scanner, the Trivy Statefulset must be edited.
There the environment variable "SCANNER_TRIVY_OFFLINE_SCAN" must be set to "true".
After the images have been scanned with Javacode, the environment variable should be set to "false" again, otherwise the CVE database will not be updated for further scans.