--skip-files and --skip-dirs seem to have no effect for .jar files #1218
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Description
I tried to find a workaround for #1185, so I tried to use
--skip-files
and--skip-dirs
in an air-gapped environment.This didn't work for the openjdk image and an image I made from scratch that only contains a HelloWorld one-liner.
What did you expect to happen?
The scan ignores the files and directories that were passed to
--skip-files
/--skip-directories
. Since the files are now not relevant anymore, trivy doesn't contact maven.What happened instead?
Trivy finds the files and attempts to gather information from maven.org, which is impossible. The run fails due to a timeout.
Output of run with
-debug
:Output of
trivy -v
:Additional details (base image name, container registry info...):
The text was updated successfully, but these errors were encountered: