Skip to content

Commit

Permalink
Merge pull request #381 from terrateamio/262-fix-checkov-wrapper-pass…
Browse files Browse the repository at this point in the history
…ed-in-args

terrateamio/terrateam#262 FIX checkov extra args
  • Loading branch information
bender2352 authored Jan 22, 2025
2 parents d74f64c + 83574d2 commit dc0942b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions checkov-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ set -euf -o pipefail

"${TERRATEAM_TF_CMD}" show -json "${TERRATEAM_PLAN_FILE}" > "${TERRATEAM_PLAN_FILE}".json

ARGS="$@"
if [ -z "$ARGS" ]; then
if [ $# -eq 0 ]; then
checkov --quiet --compact -f "${TERRATEAM_PLAN_FILE}".json
else
checkov "$ARGS" -f "${TERRATEAM_PLAN_FILE}".json
checkov "$@" -f "${TERRATEAM_PLAN_FILE}".json
fi

0 comments on commit dc0942b

Please sign in to comment.