Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
A few improvements (#809)
Dustin Deckerfcd580406ec2
diff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex 2ecbb6b01..755e3144a 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -28,7 +28,7 @@ jobs:workload_identity_provider: 'projects/811013774421/locations/global/workloadIdentityPools/github-pool/providers/github-provider'service_account: '[email protected]'- name: Test- run: make test+ run: make test-integrationtest-detectors:runs-on: ubuntu-latestpermissions:diff --git a/Makefile b/Makefileindex 01cbee281..07a2e6d7b 100644--- a/Makefile+++ b/Makefile@@ -30,6 +30,9 @@ test-failing:test:CGO_ENABLED=0 go test -timeout=5m $(shell go list ./... | grep -v /vendor/ | grep -v pkg/detectors)+test-integration:+ CGO_ENABLED=0 go test -timeout=5m -tags=integration $(shell go list ./... | grep -v /vendor/ | grep -v pkg/detectors)+test-race:CGO_ENABLED=1 go test -timeout=5m -race $(shell go list ./... | grep -v /vendor/ | grep -v pkg/detectors)diff --git a/README.md b/README.mdindex fee2f3073..31c27cf48 100644--- a/README.md+++ b/README.md@@ -170,7 +170,7 @@ docker run -it -v "$PWD:/pwd" trufflesecurity/trufflehog:latest github --org=tru# Scan commits until here (usually dev branch).head: # optional# Extra args to be passed to the trufflehog cli.- extra_args: # optional+ extra_args: --debug --only-verified```The TruffleHog OSS Github Action can be used to scan a range of commits for leaked credentials. The action will fail if@@ -189,12 +189,12 @@ jobs:with:fetch-depth: 0- name: TruffleHog OSS- uses: trufflesecurity/[email protected]+ uses: trufflesecurity/trufflehog@mainwith:path: ./base: ${{ github.event.repository.default_branch }}head: HEAD- extra_args: --debug+ extra_args: --debug --only-verified```### Precommit Hookdiff --git a/pkg/engine/defaults.go b/pkg/engine/defaults.goindex e67bc944d..7970b7985 100644--- a/pkg/engine/defaults.go+++ b/pkg/engine/defaults.go@@ -399,6 +399,7 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mockaroo""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/moderation""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/monday"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mongodb""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/monkeylearn""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/moonclerck""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/moonclerk"@@ -1471,5 +1472,6 @@ func DefaultDetectors() []detectors.Detector {prodpad.Scanner{},transferwise.Scanner{},codemagic.Scanner{},+ mongodb.Scanner{},}}