Skip to content

Commit

Permalink
Merge pull request gitleaks#23 from yuasabe/patch-1
Browse files Browse the repository at this point in the history
Checks always passing regardless of leaks
  • Loading branch information
zricethezav authored Feb 21, 2021
2 parents 6e41781 + b7f6ebf commit 8e7d7e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ then
echo gitleaks --path=$GITHUB_WORKSPACE --verbose --redact --commits-file=commit_list.txt $CONFIG
CAPTURE_OUTPUT=$(gitleaks --path=$GITHUB_WORKSPACE --verbose --redact --commits-file=commit_list.txt $CONFIG)
fi
echo "$CAPTURE_OUTPUT"
echo "::set-output name=result::$CAPTURE_OUTPUT"

if [ $? -eq 1 ]
then
GITLEAKS_RESULT=$(echo -e "\e[31m🛑 STOP! Gitleaks encountered leaks")
echo "$GITLEAKS_RESULT"
echo "::set-output name=exitcode::$GITLEAKS_RESULT"
echo "----------------------------------"
echo "$CAPTURE_OUTPUT"
echo "::set-output name=result::$CAPTURE_OUTPUT"
echo "----------------------------------"
echo -e $DONATE_MSG
exit 1
else
Expand Down

0 comments on commit 8e7d7e3

Please sign in to comment.