From 18ea347b1403d6bae89bd1c5e4738eba353e0921 Mon Sep 17 00:00:00 2001 From: Maksym Vlasov Date: Mon, 25 Oct 2021 21:59:44 +0300 Subject: [PATCH] Revert "feat: add __GIT_WORKING_DIR__ to tfsec (#255)" This reverts commit 2973f85f3ba5f8f5b4610cce9b01a7ce26510c84. --- README.md | 7 ------- terraform_tfsec.sh | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index a6d8ccaba..5343016d6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/terraform_tfsec.sh b/terraform_tfsec.sh index 0dc01fe10..c742f3215 100755 --- a/terraform_tfsec.sh +++ b/terraform_tfsec.sh @@ -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 ;; --)