Skip to content

Commit

Permalink
feat(secret-scan): Add support for exclude path file (#133)
Browse files Browse the repository at this point in the history
* add support for exclude path file

* add test keys for testing

* add testing for ignore file

* remove testing files

* use globs instead of regex

* restore git scan instead of filesystem

* Update secret-scan.yml
  • Loading branch information
Jeffreyhung authored Jul 10, 2024
1 parent 11fa4e2 commit fab9325
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/secret-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ jobs:
- name: Run TruffleHog scan
run: |
trufflehog git file://. --only-verified --github-actions --fail
if [ -e .secret_scan_ignore ]; then
trufflehog git file://. --only-verified --github-actions --fail --exclude-paths=.secret_scan_ignore
else
trufflehog git file://. --only-verified --github-actions --fail
fi

0 comments on commit fab9325

Please sign in to comment.