Error using --generate-default-config #8035
Closed
lsimmons1957
started this conversation in
Bugs
Replies: 2 comments
-
It seems that removed seem to get added to the generated yaml. Below is me editing the yaml manually to make it move along. cc @DmitriyLewen trivy image
2024-12-03T12:42:42-07:00 INFO Loaded file_path="trivy.yaml"
2024-12-03T12:42:42-07:00 ERROR "--clear-cache" was removed. Use "trivy clean --scan-cache" instead
2024-12-03T12:42:42-07:00 FATAL Fatal error flag error: cache flag error: unable to parse flag: removed flag ("--clear-cache")
➜ 8035 vim trivy.yaml
➜ 8035 trivy image
2024-12-03T12:44:48-07:00 INFO Loaded file_path="trivy.yaml"
2024-12-03T12:44:48-07:00 ERROR "--reset" was removed. Use "trivy clean --all" instead.
2024-12-03T12:44:48-07:00 FATAL Fatal error flag error: db flag error: unable to parse flag: removed flag ("--reset")
➜ 8035 vim trivy.yaml
➜ 8035 trivy image
2024-12-03T12:45:06-07:00 INFO Loaded file_path="trivy.yaml"
2024-12-03T12:45:06-07:00 WARN "--light" is deprecated. This flag is ignored.
2024-12-03T12:45:06-07:00 ERROR "--reset-checks-bundle" was removed. Use "trivy clean --checks-bundle" instead
2024-12-03T12:45:06-07:00 FATAL Fatal error flag error: misconfiguration flag error: unable to parse flag: removed flag ("--reset-checks-bundle")
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Created #8043 |
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
The --generate-default-config option produces a malformed trivy-default.yaml file.
Desired Behavior
No errors using default trivy.yaml.
Actual Behavior
Errors using default trivy.yaml.
Reproduction Steps
Target
Container Image
Scanner
Vulnerability
Output Format
None
Mode
Standalone
Debug Output
Operating System
RHEL 8
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions