Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
echo "ORG_NAME: $ORG_NAME"
echo "PAT_TOKEN: $PAT_TOKEN"

docker run --rm -e DOCKER_TTY=0 -v "$PWD:/pwd" trufflesecurity/trufflehog:latest github --org=$ORG_NAME --token=$PAT_TOKEN --only-verified > trufflehog_result.txt
docker run --rm -e DOCKER_TTY=0 -v "$PWD:/pwd" trufflesecurity/trufflehog:latest github --org=$ORG_NAME --token=$PAT_TOKEN --only-verified --json > trufflehog_result.json
# Add error handling if the previous command fails
if [ $? -ne 0 ]; then
echo "Trufflehog execution failed"
Expand All @@ -33,4 +33,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: trufflehog-result
path: trufflehog_result.txt
path: trufflehog_result.json