Custom compliance reports not usable from command-line #8875
Closed
tortoiseparrot
started this conversation in
Bugs
Replies: 1 comment
-
|
Hello @tortoiseparrot Created #8876 Regards, Dmitriy |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Description
The documentation states that one can use custom compliance reports:
The exact invocation from the command-line is documented in https://trivy.dev/latest/docs/compliance/compliance/#custom-compliance
Validation of the command-line flags prevents using such a custom file path.
Existing test
TestComplianceSpec_LoadFromDiskBundlein code also suggest that using custom file paths should be possible.Desired Behavior
trivy --complianceworks with a custom compliance report file pathActual Behavior
Both
trivy imageandtrivy k8svalidate the--complianceflag in a way that disallows custom file pathsReproduction Steps
Target
Container Image
Scanner
None
Output Format
None
Mode
Standalone
Debug Output
Operating System
Docker Desktop on Windows
Version
Checklist
trivy clean --allBeta Was this translation helpful? Give feedback.
All reactions