Skip to content
Closed
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
2 changes: 1 addition & 1 deletion actions/internal/plugins/trufflehog/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ runs:
- name: Run Trufflehog
shell: bash
run: |
./bin/trufflehog filesystem "${FOLDER}" \
./bin/trufflehog filesystem "${FOLDER}" --debug \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would an example output be?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got a more informative output with this argument instead:

Suggested change
./bin/trufflehog filesystem "${FOLDER}" --debug \
./bin/trufflehog filesystem "${FOLDER}" --log-level=5 \

The --debug flag logs more or less the same thing that's logged in the GitHub Actions annotation:

2025/11/14 17:53:37 [updater parent] run
2025/11/14 17:53:37 [updater parent] checking for updates...
2025/11/14 17:53:38 [updater parent] failed to get latest version: already up to date
2025/11/14 17:53:38 [updater parent] starting /opt/homebrew/bin/trufflehog
2025/11/14 17:53:38 [updater child#1] run
2025/11/14 17:53:38 [updater child#1] start program
2025-11-14T17:53:38+01:00	info-2	trufflehog	trufflehog 3.91.0
🐷🔑🐷  TruffleHog. Unearth your secrets. 🐷🔑🐷

2025-11-14T17:53:38+01:00	info-2	trufflehog	starting scanner workers	{"count": 10}
2025-11-14T17:53:38+01:00	info-2	trufflehog	starting detector workers	{"count": 80}
2025-11-14T17:53:38+01:00	info-2	trufflehog	starting verificationOverlap workers	{"count": 10}
2025-11-14T17:53:38+01:00	info-2	trufflehog	starting notifier workers	{"count": 10}
2025-11-14T17:53:38+01:00	info-0	trufflehog	running source	{"source_manager_worker_id": "xM5V6", "with_units": true}
2025-11-14T17:53:38+01:00	info-2	trufflehog	enumerating source	{"source_manager_worker_id": "xM5V6"}
::warning file=tests/simple-frontend-pnpm/provisioning/dashboards/dashboard.json,line=101,endLine=101::Found unverified NpmToken result 🐷🔑
2025-11-14T17:53:38+01:00	info-0	trufflehog	finished scanning	{"chunks": 1451, "bytes": 8887046, "verified_secrets": 0, "unverified_secrets": 1, "scan_duration": "372.441833ms", "trufflehog_version": "3.91.0", "verification_caching": {"Hits":0,"Misses":1,"HitsWasted":0,"AttemptsSaved":0,"VerificationTimeSpentMS":289}}
2025-11-14T17:53:38+01:00	info-2	trufflehog	exiting with code 183 because results were found
2025/11/14 17:53:38 [updater parent] prog exited with 183

--no-update --fail --github-actions \
--results=verified,unknown \
--include-detectors="${INCLUDE_DETECTORS}" \
Expand Down
Loading