Files
trufflehog/entrypoint.sh
Mike Vanbuskirk c78d10149b
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
ensure stdout is still provided (#1217)
2023-03-28 11:29:48 -07:00

8 lines
278 B
Bash
Executable File

#!/usr/bin/env bash
# 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