File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 7979- id : terraform_tfsec
8080 name : Terraform validate with tfsec
8181 description : Static analysis of Terraform templates to spot potential security issues.
82+ require_serial : true
8283 entry : terraform_tfsec.sh
8384 language : script
8485
Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ main() {
66 parse_cmdline_ " $@ "
77
88 # propagate $FILES to custom function
9- tfsec_ " $ARGS " " $FILES "
9+ tfsec_ " $ARGS " " ${ FILES[*]} "
1010}
1111
1212tfsec_ () {
1313 # consume modified files passed from pre-commit so that
1414 # tfsec runs against only those relevant directories
15- for file_with_path in $FILES ; do
15+ for file_with_path in ${ FILES[*]} ; do
1616 file_with_path=" ${file_with_path// / __REPLACED__SPACE__} "
1717 paths[index]=$( dirname " $file_with_path " )
1818
You can’t perform that action at this time.
0 commit comments