mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
fix: exclude false-positive paths from TruffleHog scanning
Add .trufflehog-exclude.txt to skip: - .git/ directory (git metadata, non-tracked) - pihole/combined_list.txt (blocklist with domain-name patterns matching Datadog secret detectors) Update secret-scanning.yml to reference the exclude file via --exclude-paths. Fixes code-scanning alerts #3, #4, #5 (false positives).
This commit is contained in:
1 parent
a73b8d1caf
commit
3ee89f3b4f
2 files changed
+18
-1
No files matched your search
@@ -36,8 +36,11 @@ jobs:
|
||||
- name: Run TruffleHog
|
||||
# --sarif outputs SARIF to stdout; redirect to file (no --output flag)
|
||||
# --fail exits 183 if secrets found; continue-on-error makes non-blocking
|
||||
# --exclude-paths uses .trufflehog-exclude.txt to skip files/paths
|
||||
# that routinely produce false positives (e.g. .git/ metadata,
|
||||
# Pi-hole blocklists with domain-name patterns matching secret detectors)
|
||||
run: |
|
||||
trufflehog filesystem . --sarif --fail --no-update > results.sarif
|
||||
trufflehog filesystem . --sarif --fail --no-update -x .trufflehog-exclude.txt > results.sarif
|
||||
continue-on-error: true
|
||||
|
||||
- name: Upload TruffleHog results to GitHub Security tab
|
||||
|
||||
Reference in new issue
Block a user