terrascan icon indicating copy to clipboard operation
terrascan copied to clipboard

remove scan error section or give enabling all iac type scan flag

Open sangam14 opened this issue 2 years ago • 1 comments

remove scan errors when user provide iac type ! and give option to enable all iac its useful for GitHub users or scanning all resources

terrascan scan -i terraform       


Scan Errors - 

        IaC Type            :   terraform
        Directory           :   /Users/sangam/Documents/GitHub/terrascan-gitaction-demo/test_dirs
        Error Message       :   directory '/Users/sangam/Documents/GitHub/terrascan-gitaction-demo/test_dirs' has no terraform config files

        -----------------------------------------------------------------------

        IaC Type            :   terraform
        Directory           :   /Users/sangam/Documents/GitHub/terrascan-gitaction-demo/test_dirs/custom-policies
        Error Message       :   directory '/Users/sangam/Documents/GitHub/terrascan-gitaction-demo/test_dirs/custom-policies' has no terraform config files

        -----------------------------------------------------------------------

        IaC Type            :   terraform
        Directory           :   /Users/sangam/Documents/GitHub/terrascan-gitaction-demo/test_dirs/fail/config
        Error Message       :   directory '/Users/sangam/Documents/GitHub/terrascan-gitaction-demo/test_dirs/fail/config' has no terraform config files

        -----------------------------------------------------------------------

        IaC Type            :   terraform
        Directory           :   /Users/sangam/Documents/GitHub/terrascan-gitaction-demo/test_dirs/fail/modules
        Error Message       :   directory '/Users/sangam/Documents/GitHub/terrascan-gitaction-demo/test_dirs/fail/modules' has no terraform config files

        -----------------------------------------------------------------------

        IaC Type            :   terraform
        Directory           :   /Users/sangam/Documents/GitHub/terrascan-gitaction-demo/test_dirs/fail/modules/kubernetes/templates
        Error Message       :   directory '/Users/sangam/Documents/GitHub/terrascan-gitaction-demo/test_dirs/fail/modules/kubernetes/templates' has no terraform config files

        -----------------------------------------------------------------------

sangam14 avatar May 06 '22 13:05 sangam14

That's something new and very annoying. Is there any option to suppress this type of messages?

ArMyBoT avatar May 17 '22 17:05 ArMyBoT