-
-
Notifications
You must be signed in to change notification settings - Fork 573
Closed
Labels
featureNew feature or requestNew feature or request
Description
A follow-up to #943 (see suggestion at this thread).
TL;DR: Move __GIT_WORKING_DIR__
permutation feature over right into common::parse_cmdline
function so that it is available to all hooks that utilize common::parse_cmdline
func
# Support for setting PATH to repo root.
for i in "${!ARGS[@]}"; do
ARGS[i]=${ARGS[i]/__GIT_WORKING_DIR__/$(pwd)\/}
done
Once moved, these hooks need to be updated by removing the for
loop for __GIT_WORKING_DIR__
permutation (+ also update README to provide more clear info):
hooks/terraform_tflint.sh:18: ARGS[i]=${ARGS[i]/__GIT_WORKING_DIR__/$(pwd)\/}
hooks/terraform_trivy.sh:17: ARGS[i]=${ARGS[i]/__GIT_WORKING_DIR__/$(pwd)\/}
hooks/terraform_checkov.sh:17: ARGS[i]=${ARGS[i]/__GIT_WORKING_DIR__/$(pwd)\/}
hooks/terraform_tfsec.sh:17: ARGS[i]=${ARGS[i]/__GIT_WORKING_DIR__/$(pwd)\/}
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request