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

bug(terraform): scan results differ between .tf and respective .tfplan file #7112

Open
Tohar-orca opened this issue Jun 6, 2024 · 0 comments
Labels
bug Something isn't working community Community contribution terraform Terraform query

Comments

@Tohar-orca
Copy link
Contributor

Tohar-orca commented Jun 6, 2024

Expected Behavior

When scanning as .tf file and it's resulting .tfplan, KICS should return the same findings

Actual Behavior

Scanning the attached tf files directory produces 13 results
Scanning the tfplan json, generated from the same tf files, produces only 1 result

Steps to Reproduce the Problem

  1. Extract the attached .zip
  2. Scan the file with KICS (i used go run cmd/console/main.go scan -p "/path/to/directory" -d "generated_json")
  3. Run terraform plan -out=out.tfplan
  4. Run terraform show -json out.tfplan > out.json
  5. Scan the tfplan (go run cmd/console/main.go scan -p "/path/to/out.json" -d "generated_json")

Specifications

N/A

  • Version: 2.0.1
  • Platform: MacOS
  • Subsystem: Sonoma 14.4.1
    tf_files.zip
@Tohar-orca Tohar-orca added bug Something isn't working community Community contribution labels Jun 6, 2024
@github-actions github-actions bot added the terraform Terraform query label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community Community contribution terraform Terraform query
Projects
None yet
Development

No branches or pull requests

1 participant