Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,14 @@ Example:
--no-color
-e aws-s3-enable-bucket-logging,aws-s3-specify-public-access-block
```
4. Like terraform_tflint, `__GIT_WORKING_DIR__` can be used when specifying files relative to the git working directory:

Example:

```yaml
- id: terraform_tfsec
args: [--args=--config-file=__GIT_WORKING_DIR__/.tfsec.json]
```

### terraform_validate

Expand Down
3 changes: 2 additions & 1 deletion terraform_tfsec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ parse_cmdline_() {
case $argv in
-a | --args)
shift
ARGS+=("$1")
expanded_arg="${1//__GIT_WORKING_DIR__/$PWD}"
ARGS+=("$expanded_arg")
shift
;;
--)
Expand Down