kics icon indicating copy to clipboard operation
kics copied to clipboard

Kics different behavior on similar scans (using flag -t)

Open cxlucas opened this issue 3 years ago • 0 comments

Expected Behavior

When running "kics scan -p sample.zip -o output" using (or not) the flag -t, kics must run the queries and create, if the scan is valid, a results.json

Actual Behavior

Kics generates a results.json if the flag -t was provided, otherwise, it will display "No files were scanned".

Steps to Reproduce the Problem

  1. Download the sample (or create an empty zip file).
  2. Execute kics scans 2 times using the attached sample (empty zip file):
    1. kics scan -p sample.zip -o output1 - will display "No Files were scanned" and it will not generate a results.json file.
    1. kics scan -p sample.zip -o output2 -t terraform - will perform a scan with 0 results and it will generate a results.json file.

Specifications

  • Version: N/A
  • Platform: N/A
  • Subsystem: N/A

Attachments

sample.zip

cxlucas avatar Feb 16 '22 12:02 cxlucas