Skip to content

Commit 59c8058

Browse files
committed
Removing conditional break
1 parent c00a72c commit 59c8058

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

action.yml

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -99,27 +99,28 @@ runs:
9999
HEAD=${{github.event.pull_request.head.sha}}
100100
fi
101101
fi
102-
fi
103-
##########################################
104-
## Determine additional args ##
105-
##########################################
106-
if [ -n "$NO_FAIL" ]; then
107-
FAIL=""
108-
else
109-
FAIL="--fail"
110-
fi
111-
##########################################
112-
## Run TruffleHog ##
113-
##########################################
114-
results=$(docker run --rm -v ${{ github.workspace }}:/tmp -w /tmp \
115-
ghcr.io/trufflesecurity/trufflehog:${VERSION} \
116-
git file:///tmp/ \
117-
--since-commit \
118-
${BASE:-''} \
119-
--branch \
120-
${HEAD:-''} \
121-
${FAIL} \
122-
--no-update \
123-
--github-actions \
124-
${ARGS:-''})
125-
echo "results='$(echo $results)'" >> $GITHUB_OUTPUT
102+
103+
##########################################
104+
## Determine additional args ##
105+
##########################################
106+
if [ -n "$NO_FAIL" ]; then
107+
FAIL=""
108+
else
109+
FAIL="--fail"
110+
fi
111+
112+
##########################################
113+
## Run TruffleHog ##
114+
##########################################
115+
results=$(docker run --rm -v ${{ github.workspace }}:/tmp -w /tmp \
116+
ghcr.io/trufflesecurity/trufflehog:${VERSION} \
117+
git file:///tmp/ \
118+
--since-commit \
119+
${BASE:-''} \
120+
--branch \
121+
${HEAD:-''} \
122+
${FAIL} \
123+
--no-update \
124+
--github-actions \
125+
${ARGS:-''})
126+
echo "results='$(echo $results)'" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)