Skip to content

Commit

Permalink
Revert "feat: add __GIT_WORKING_DIR__ to tfsec (#255)"
Browse files Browse the repository at this point in the history
This reverts commit 2973f85.
  • Loading branch information
MaxymVlasov authored Oct 25, 2021
1 parent cc59119 commit 18ea347
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,14 +372,7 @@ 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: 1 addition & 2 deletions terraform_tfsec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ parse_cmdline_() {
case $argv in
-a | --args)
shift
expanded_arg="${1//__GIT_WORKING_DIR__/$PWD}"
ARGS+=("$expanded_arg")
ARGS+=("$1")
shift
;;
--)
Expand Down

0 comments on commit 18ea347

Please sign in to comment.