Skip to content

Ability to select files or directories #50

@pgesek

Description

@pgesek

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions