-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
trivy can scan dockerfile more than matching pattern Dockerfile* #2608
Comments
Thanks for the tips!
|
one more thing to confirm, using |
Yes. @DmitriyLewen Could you take a look? |
Current version of trivy only support dockerfile with name starting with "Dockerfile".
Same as using as target, it only looks for "Dockerfile*"
Since docker support using
-f <dockerfile>
, trivy should have a similar feature . This is very useful with multiple dockerfiles,some suggestions:
trivy fs --security-checks config --file dockerfile1, dockerfile2, ...
--security-checks
e.g--security-checks dockerfile
and use along with--skip-files
e.gtrivy fs --security-checks dockerfile --skip-files some.txt .
see test log:
after rename dockerfile to Dockerfile, it works
The text was updated successfully, but these errors were encountered: