Skip to content

Commit

Permalink
Add trufflehog to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank-Howard committed Dec 10, 2024
1 parent aba2494 commit 54053fa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,12 @@ repos:
- id: ruff
args: [ "--fix" ]
- id: ruff-format
- repo: https://github.com/trufflesecurity/trufflehog.git
rev: "v3.84.2"
hooks:
- id: trufflehog
name: TruffleHog
description: Detect secrets in your data.
entry: bash -c 'trufflehog git file://. --since-commit HEAD --only-verified --fail --no-update'
language: system
stages: ["pre-commit", "pre-push"]

0 comments on commit 54053fa

Please sign in to comment.