File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ inputs:
14
14
head :
15
15
description : Scan commits until here (usually dev branch).
16
16
required : false
17
+ no_fail :
18
+ description : When set, trufflehog does not exit with a 183 code when a credential is found.
19
+ required : false
20
+ default : ' '
17
21
extra_args :
18
22
default : " "
19
23
description : Extra args to be passed to the trufflehog cli.
34
38
using : " composite"
35
39
steps :
36
40
- shell : bash
41
+ id : trufflehog
37
42
working-directory : ${{ inputs.path }}
38
43
env :
39
44
BASE : ${{ inputs.base }}
@@ -96,6 +101,14 @@ runs:
96
101
fi
97
102
fi
98
103
# #########################################
104
+ # # Determine additional args ##
105
+ # #########################################
106
+ if [ -n "$NO_FAIL" ]; then
107
+ FAIL=""
108
+ else
109
+ FAIL="--fail"
110
+ fi
111
+ # #########################################
99
112
# # Run TruffleHog ##
100
113
# #########################################
101
114
results=$(docker run --rm -v ${{ github.workspace }}:/tmp -w /tmp \
@@ -105,6 +118,7 @@ runs:
105
118
${BASE:-''} \
106
119
--branch \
107
120
${HEAD:-''} \
121
+ ${FAIL} \
108
122
--no-update \
109
123
--github-actions \
110
124
${ARGS:-''})
You can’t perform that action at this time.
0 commit comments