File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ inputs:
22
22
default : ' latest'
23
23
description : Scan with this trufflehog cli version.
24
24
required : false
25
+ outputs :
26
+ results :
27
+ description : " Trufflehog scan outputs"
28
+ value : ${{ steps.trufflehog.outputs.results }}
25
29
branding :
26
30
icon : " shield"
27
31
color : " green"
30
34
using : " composite"
31
35
steps :
32
36
- shell : bash
37
+ id : trufflehog
33
38
working-directory : ${{ inputs.path }}
34
39
env :
35
40
BASE : ${{ inputs.base }}
@@ -86,14 +91,10 @@ runs:
86
91
##########################################
87
92
## Run TruffleHog ##
88
93
##########################################
89
- docker run --rm -v .:/tmp -w /tmp \
94
+ results=$( docker run --rm -v .:/tmp -w /tmp \
90
95
ghcr.io/trufflesecurity/trufflehog:${VERSION} \
91
96
git file:///tmp/ \
92
- --since-commit \
93
- ${BASE:-''} \
94
- --branch \
95
- ${HEAD:-''} \
96
- --fail \
97
97
--no-update \
98
98
--github-actions \
99
- ${ARGS:-''}
99
+ ${ARGS:-''})
100
+ echo "results='$(echo $results)'" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments