Add support for a single run to be converted into different outputs #1901
Replies: 1 comment 5 replies
-
Interesting idea. Intuitively, I think that use cases like this should be achieved by supporting multiple output flags rather than conversions. It seems that Trivy had a similar opinion, but due to their own circumstances, they decided to implement This constraint doesn't exist in TFLint, so I'm positive about supporting multiple output flags. Support status in other linters and discussion on Trivy may be helpful. However, fine-grained control over error codes cannot be achieved with this feature, so other ways must be considered. Can I ask why you need to change the rules or |
Beta Was this translation helpful? Give feedback.
-
Introduction
Currently in CI/CD I have to run TFLint 4 times to get my desired outputs and error code, this is very expensive so I;d like to be able to only run the TFLint scanner once and then report on the output. Trivy does this very well with
trivy convert
and Terraform has similar functionality withterraform show
.Proposal
I'd like TFLint to add a command to read a common format (JSON?) and convert it to an output with error codes as if it was coming directly from a scan.
The following example code assumes there is a new
--convert
arg and minimum failure severity could be set tonone
.References
Beta Was this translation helpful? Give feedback.
All reactions