kics icon indicating copy to clipboard operation
kics copied to clipboard

queary on change the json output of docker image execuited to pdf or html

Open wride95 opened this issue 2 years ago • 2 comments

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

wride95 avatar Jun 27 '22 09:06 wride95

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 😊

rafaela-soares avatar Jun 28 '22 07:06 rafaela-soares

@wride95, did it help?

rafaela-soares avatar Jul 06 '22 12:07 rafaela-soares

@wride95, did it help?

rafaela-soares avatar Oct 18 '22 14:10 rafaela-soares

Hi @wride95 ,

Thank you for your inputs. Since this issue does not have any recent activity, we will close it.

gabriel-cx avatar Apr 24 '24 08:04 gabriel-cx