Skip to content

Commit

Permalink
chore: removing full path
Browse files Browse the repository at this point in the history
  • Loading branch information
triat committed Nov 7, 2020
1 parent 2ac8a9a commit b5b4198
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/bin/bash

# Add specific directory if specified
DEFAULT_GITHUB_WORKSPACE="/github/workspace/"
if [ "${INPUT_TFSEC_ACTIONS_WORKING_DIR}" != "" ] && [ "${INPUT_TFSEC_ACTIONS_WORKING_DIR}" != "." ]; then
for DIR in ${INPUT_TFSEC_ACTIONS_WORKING_DIR}; do
TFSEC_WORKING_DIR="$TFSEC_WORKING_DIR $DEFAULT_GITHUB_WORKSPACE$DIR"
TFSEC_WORKING_DIR="$DIR $TFSEC_WORKING_DIR"
done
else
TFSEC_WORKING_DIR="$DEFAULT_GITHUB_WORKSPACE"
TFSEC_WORKING_DIR="."
fi
echo $TFSEC_WORKING_DIR

Expand All @@ -18,7 +17,6 @@ else
env GO111MODULE=on go get -u github.com/tfsec/tfsec/cmd/tfsec
fi

ls -R $DEFAULT_GITHUB_WORKSPACE
if [[ -n "$INPUT_TFSEC_EXCLUDE" ]]; then
TFSEC_CMD="/go/bin/tfsec ${TFSEC_WORKING_DIR} --no-colour -e \"${INPUT_TFSEC_EXCLUDE}\""
echo "$TFSEC_CMD"
Expand Down

0 comments on commit b5b4198

Please sign in to comment.