Compare commits

..

1 Commits

Author SHA1 Message Date
Mike Vanbuskirk 6a02151add re-add actions CLI switch to action yml 2023-03-28 14:52:03 -04:00
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -17,6 +17,9 @@ 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"
@@ -32,4 +35,5 @@ runs:
- ${{ inputs.head }}
- --fail
- --no-update
- --github-actions
- ${{ inputs.extra_args }}
+2 -1
View File
@@ -3,4 +3,5 @@
# Parse the last argument into an array of extra_args.
mapfile -t extra_args < <(bash -c "for arg in ${*: -1}; do echo \$arg; done")
/usr/bin/trufflehog "${@: 1: $#-1}" "${extra_args[@]}"
results=$(/usr/bin/trufflehog "${@: 1: $#-1}" "${extra_args[@]}" | tee /dev/tty)
echo "results=$results" >> $GITHUB_OUTPUT