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

The "-o" flag doesn't work in folders containing dots (in folder name) #3769

Closed
cxlucas opened this issue Jun 28, 2021 · 0 comments · Fixed by #3775
Closed

The "-o" flag doesn't work in folders containing dots (in folder name) #3769

cxlucas opened this issue Jun 28, 2021 · 0 comments · Fixed by #3775
Assignees
Labels
bug Something isn't working

Comments

@cxlucas
Copy link
Contributor

cxlucas commented Jun 28, 2021

Expected Behavior

When running a scan with -o folder-name should create a folder (if not exists) and create a results.json file within it.

Actual Behavior

When running a kics scan with -o folder.name, kics creates a results.json file in the root folder (doesn't creating the folder given in -o). The problem is the same if the given folder already exists.

Steps to Reproduce the Problem

  1. You should have a valid file to perform a successful scan.
  2. Open terminal.
  3. Go to kics folder.
  4. Run: kics scan -p sample.tf -o scan.files or kics scan -p sample.tf -o "scan.files"
  5. Create a folder called "scan.files" in the kics root folder.
  6. Execute the step 4 again (the result will be the same).

Step 4 will create a "results.json" in the kics root folder (ignoring the given folder)

Specifications

  • Version: all
  • Platform: all
  • Subsystem: n/a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants