kics
kics copied to clipboard
queary on change the json output of docker image execuited to pdf or html
Platform
(e.g. Terraform, Ansible, etc.) terraform,docker
Provider
(e.g. AWS, Azure, GCP, etc.) all
Description
Give a short description about the query hi i want to know the command to execiute the terraform code in docker image of kics and the output of it should be in either html or pdf i tried with following command changin the last argument as .pdf it didnot work sudo docker run -v /home/ubuntu/terraform/:/path checkmarx/kics:latest scan -p "/path" -o "/path/results.json" please let me know the right command on this please
Hello, @wride95!
Thank you so much for using KICS 🚀!
The flag -o
should point to the directory where you want to save the results. By default, the report is saved in JSON. If you want to specify the report format(s), you should use the flag --report-formats
.
[example] Save the report in HTML and PDF format:
sudo docker run -v /home/ubuntu/terraform/:/path checkmarx/kics:latest scan -p "/path" -o "/path/results" --report-formats "html,pdf"
[example] Save only in HTML:
sudo docker run -v /home/ubuntu/terraform/:/path checkmarx/kics:latest scan -p "/path" -o "/path/results" --report-formats "html"
Let me know if you need further help 😊
@wride95, did it help?
@wride95, did it help?
Hi @wride95 ,
Thank you for your inputs. Since this issue does not have any recent activity, we will close it.