Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore .terra* cache directories by default globally #6217

Closed
davidjeddy opened this issue Mar 7, 2023 · 2 comments · Fixed by #6240
Closed

Ignore .terra* cache directories by default globally #6217

davidjeddy opened this issue Mar 7, 2023 · 2 comments · Fixed by #6240
Assignees
Labels
community Community contribution feature request Community: new feature request

Comments

@davidjeddy
Copy link

davidjeddy commented Mar 7, 2023

Is your feature request related to a problem? Please describe.
When running KICS the Terraform module cache directories are scanned by default. Most consumers of modules have little to no ability to change a 3rd part module.

Describe the solution you'd like
By default KICS should ignore **/.terra* when executing a scan. This would ignore both .terraform and .terragrunt cache directories that are present in module Terraform deployment modules.

Describe alternatives you've considered
Currently using `--exclude-paths ".terra*, ./.terra*, .//.terra*, .terra*/, ./.terra/*, .//.terra*/*", ...". This is functional but contrived.

Additional context

The full command:

kics scan \
        --cloud-provider "aws" \
        --exclude-paths ".terra*, **/.terra*" \
        --no-color \
        --path "." \
        --queries-path "$PATH_TO/assets/queries" \
        --type "Terraform" \
        --verbose
@davidjeddy davidjeddy added community Community contribution feature request Community: new feature request labels Mar 7, 2023
@davidjeddy davidjeddy changed the title Ignore .terra* cache directories by default Ignore .terra* cache directories by default globally Mar 7, 2023
@dim-ops
Copy link
Contributor

dim-ops commented Mar 20, 2023

@cxMiguelSilva is it possible to be assigned at this feature ? Always a pleasure to do Go ☺️

@cxMiguelSilva
Copy link
Collaborator

Hi @dim-ops,
Of course! Take the lead!
In case you need any help do not hesitate to ask!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution feature request Community: new feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants