Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add __GIT_WORKING_DIR__ to tfsec #255

Merged
merged 2 commits into from
Oct 21, 2021
Merged
Changes from 1 commit
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
Next Next commit
add __GIT_WORKING_DIR__ to tfsec
we store the .tfsec.json file in the top level directory, so this would be useful to include as an option like tflint.
  • Loading branch information
gravitybacklight authored Oct 20, 2021
commit 22aa851b2fa7d2a0d1de34a99771168f82de8572
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