-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add trufflehog workflow to secret scan (#313)
* Add trufflehog workflow to secret scan * Add pre-push git hook to scan code with trufflehog. * Make pre-commit hook executable. * Pin to version 3.14.0 Co-authored-by: Ariful Haque <[email protected]>
- Loading branch information
1 parent
ef32705
commit db2323a
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
REPO_ROOT_DIR=$(git rev-parse --show-toplevel) | ||
|
||
docker run --rm -v "$REPO_ROOT_DIR:/app" trufflesecurity/trufflehog:3.14.0 git file:///app --only-verified --no-update --fail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,12 @@ jobs: | |
- name: gitleaks-action | ||
uses: gitleaks/[email protected] | ||
with: | ||
config-path: security/.gitleaks.toml | ||
config-path: security/.gitleaks.toml | ||
|
||
- name: TruffleHog OSS | ||
uses: trufflesecurity/[email protected] | ||
with: | ||
path: ./ | ||
base: ${{ github.event.repository.default_branch }} | ||
head: HEAD | ||
extra_args: --debug --only-verified --no-update |