kics icon indicating copy to clipboard operation
kics copied to clipboard

Use .gitignore to automatically exclude paths

Open jgrumboe opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. I tested kics for Terraform code and it will also report problems it finds in the external modules I use in my code. To be more precise it scans also .terraform folders and files found there.

Describe the solution you'd like I already ignore .terraform folders in my .gitignore and would like kics to understand/respect the definitions there - automatically or via cmdline argument.

Describe alternatives you've considered I can define the folders in this case also directly using kics scan -e '.terraform,*/.terraform' -p . But for future improvements, I think it would be good to support .gitignore.

jgrumboe avatar Dec 06 '21 10:12 jgrumboe

Hi @jgrumboe,

First of all i'm sorry for the delay on the feedback. Also i would like to thanks you on this input. Regarding this feature request, i've decided to include it on Kics 1.6 version.

Regards, Antero Silva Product Manager - Kics

anterosilva1985 avatar Jun 06 '22 15:06 anterosilva1985

Hi, @jgrumboe!

Thank you so much for the suggestion. KICS 1.6 version implements it 😊

rafaela-soares avatar Sep 19 '22 10:09 rafaela-soares