We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0b9b3c commit 2973f85Copy full SHA for 2973f85
README.md
@@ -372,7 +372,14 @@ Example:
372
--no-color
373
-e aws-s3-enable-bucket-logging,aws-s3-specify-public-access-block
374
```
375
+4. Like terraform_tflint, `__GIT_WORKING_DIR__` can be used when specifying files relative to the git working directory:
376
377
+Example:
378
+
379
+ ```yaml
380
+ - id: terraform_tfsec
381
+ args: [--args=--config-file=__GIT_WORKING_DIR__/.tfsec.json]
382
+ ```
383
384
### terraform_validate
385
terraform_tfsec.sh
@@ -54,7 +54,8 @@ parse_cmdline_() {
54
case $argv in
55
-a | --args)
56
shift
57
- ARGS+=("$1")
+ expanded_arg="${1//__GIT_WORKING_DIR__/$PWD}"
58
+ ARGS+=("$expanded_arg")
59
60
;;
61
--)
0 commit comments