revert to original entrypoint config (#1219)
* revert to original entrypoint config * remove explicit output definition
This commit is contained in:
@@ -17,9 +17,6 @@ inputs:
|
|||||||
default: ''
|
default: ''
|
||||||
description: Extra args to be passed to the trufflehog cli.
|
description: Extra args to be passed to the trufflehog cli.
|
||||||
required: false
|
required: false
|
||||||
outputs:
|
|
||||||
results:
|
|
||||||
description: 'Trufflehog scan results'
|
|
||||||
branding:
|
branding:
|
||||||
icon: "shield"
|
icon: "shield"
|
||||||
color: "green"
|
color: "green"
|
||||||
|
|||||||
+1
-2
@@ -3,5 +3,4 @@
|
|||||||
# Parse the last argument into an array of extra_args.
|
# Parse the last argument into an array of extra_args.
|
||||||
mapfile -t extra_args < <(bash -c "for arg in ${*: -1}; do echo \$arg; done")
|
mapfile -t extra_args < <(bash -c "for arg in ${*: -1}; do echo \$arg; done")
|
||||||
|
|
||||||
results=$(/usr/bin/trufflehog "${@: 1: $#-1}" "${extra_args[@]}" | tee /dev/tty)
|
/usr/bin/trufflehog "${@: 1: $#-1}" "${extra_args[@]}"
|
||||||
echo "results=$results" >> $GITHUB_OUTPUT
|
|
||||||
|
|||||||
Reference in New Issue
Block a user