Skip to content

Commit

Permalink
fix(terraform): recursively detect all Root Modules (#4457)
Browse files Browse the repository at this point in the history
Signed-off-by: Simar <simar@linux.com>
Co-authored-by: Simar <simar@linux.com>
  • Loading branch information
jof and simar7 authored Jun 8, 2023
1 parent 4a5b915 commit 52cbe79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/misconf/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ func addTFOpts(opts []options.ScannerOption, scannerOption ScannerOption) []opti
opts = append(opts, tfscanner.ScannerWithTFVarsPaths(scannerOption.TerraformTFVars...))
}

opts = append(opts, tfscanner.ScannerWithAllDirectories(true))

return opts
}

Expand Down

0 comments on commit 52cbe79

Please sign in to comment.