Skip to content

Commit

Permalink
fix(misconf): do not recreate filesystem map (aquasecurity#7416)
Browse files Browse the repository at this point in the history
Signed-off-by: nikpivkin <[email protected]>
  • Loading branch information
nikpivkin authored and fhielpos committed Dec 20, 2024
1 parent ef47b77 commit 3c2d7a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/iac/scanners/terraform/parser/evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ func (e *evaluator) evaluateSubmodules(ctx context.Context, fsMap map[string]fs.
var modules terraform.Modules
for _, sm := range submodules {
modules = append(modules, sm.modules...)
fsMap = lo.Assign(fsMap, sm.fsMap)
for k, v := range sm.fsMap {
fsMap[k] = v
}
}

e.logger.Debug("Finished processing submodule(s).", log.Int("count", len(modules)))
Expand Down

0 comments on commit 3c2d7a5

Please sign in to comment.