Skip to content

How to exclude folders from scan? #5365

Closed Answered by rafaela-soares
andyshinn asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, @andyshinn! Thank you so much for reaching us!

Are you using Docker? If yes, you need to point the volume like this:

  • if .terraform is inside of the root of /path/:

docker run -v $pwd/:/path/ checkmarx/kics:latest scan -p /path/ --no-progress -e "/path/.terraform" -v

  • if .terraform is inside of the root of /path/folder1:

docker run -v $pwd/:/path/ checkmarx/kics:latest scan -p /path/ --no-progress -e "/path/*/.terraform" -v

Let me know if it helps, please 😊

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@andyshinn
Comment options

@rafaela-soares
Comment options

@andyshinn
Comment options

@rafaela-soares
Comment options

@andyshinn
Comment options

Answer selected by kaplanlior
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants