Skip to content

Commit e4b8184

Browse files
committed
fix: fail on finding
1 parent 84f477a commit e4b8184

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

action.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,13 @@ runs:
5555
if ! command -v bark &> /dev/null; then
5656
BARK_CMD="$HOME/go/bin/bark"
5757
fi
58-
59-
$BARK_CMD -format ${{ inputs.format }} ${{ inputs.path }}
60-
exit_code=$?
61-
58+
59+
$BARK_CMD -format ${{ inputs.format }} ${{ inputs.path }} || exit_code=$?
60+
exit_code=${exit_code:-0}
61+
6262
if [ "${{ inputs.fail-on-findings }}" = "false" ]; then
6363
echo "ℹ️ Bark scan completed (fail-on-findings: false)"
6464
exit 0
6565
fi
66-
67-
exit $exit_code
6866
67+
exit $exit_code

0 commit comments

Comments
 (0)