revert to original entrypoint config (#1219)
Lint / lint (push) Waiting to run
Release / Release (push) Waiting to run
Scan for secrets / test (push) Waiting to run
Snifftest / Run Snifftest (push) Waiting to run
Test / test (push) Waiting to run
Test / test-detectors (push) Waiting to run

* revert to original entrypoint config

* remove explicit output definition
This commit is contained in:
Mike Vanbuskirk
2023-03-28 12:42:57 -07:00
committed by GitHub
parent c78d10149b
commit 4d46c9a9dc
2 changed files with 1 additions and 5 deletions
-3
View File
@@ -17,9 +17,6 @@ inputs:
default: ''
description: Extra args to be passed to the trufflehog cli.
required: false
outputs:
results:
description: 'Trufflehog scan results'
branding:
icon: "shield"
color: "green"
+1 -2
View File
@@ -3,5 +3,4 @@
# Parse the last argument into an array of extra_args.
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)
echo "results=$results" >> $GITHUB_OUTPUT
/usr/bin/trufflehog "${@: 1: $#-1}" "${extra_args[@]}"