When running Infrascan in a larger project, it would be good to select which Terraform/compose/Kubernetes files it should scan (especially useful in case of containers), in order to avoid scanning redundant/duplicated/test deployments if that is not necessary.
We should add an -f flag that will allow selecting either a file or a directory.
If the file is selected, only the file should be scanned. If this is not a valid file we can scan, throw an error.
If a directory is scanned, it should be used to look for compose/Kubernetes/Terraform files.
It would be great to be able to provide this option multiple times on one execution.
When running Infrascan in a larger project, it would be good to select which Terraform/compose/Kubernetes files it should scan (especially useful in case of containers), in order to avoid scanning redundant/duplicated/test deployments if that is not necessary.
We should add an
-fflag that will allow selecting either a file or a directory.If the file is selected, only the file should be scanned. If this is not a valid file we can scan, throw an error.
If a directory is scanned, it should be used to look for compose/Kubernetes/Terraform files.
It would be great to be able to provide this option multiple times on one execution.