--download-db-only and --download-java-db-only can't be used in together #7250
Closed
baskervilski
started this conversation in
Bugs
Replies: 2 comments 1 reply
-
@baskervilski Thanks for your report. @DmitriyLewen We should return an error for clarity if both flags are specified. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Version: 0.53.0
Running
trivy image --download-db-only --download-java-db-only
or:
trivy image --download-java-db-only --download-db-only
results with only the Java DB being downloaded, without any message/warning that the other DB won't be downloaded.
Desired Behavior
EITHER: Download both DBs when both flags are present.
OR: Raise an error if both flags are used simultaneously.
Actual Behavior
Reproduction Steps
Target
Container Image
Scanner
None
Output Format
None
Mode
None
Debug Output
Operating System
Linux
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions