Skip to content

Commit b5b5883

Browse files
committed
add gitleaks
1 parent 6b8d1ce commit b5b5883

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

.gitallowed

Lines changed: 0 additions & 3 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,15 @@ repos:
4141
types_or: [sh, shell]
4242
pass_filenames: false
4343

44-
- id: git-secrets
45-
name: Git Secrets
46-
description: git-secrets scans commits, commit messages, and --no-ff merges to prevent adding secrets into your git repositories.
44+
- id: gitleaks
45+
name: Git Leaks
46+
description: gitleaks scans commits, commit messages, and --no-ff merges to prevent adding secrets into your git repositories.
4747
entry: bash
4848
args:
4949
- -c
50-
- 'git-secrets --pre_commit_hook'
50+
- "gitleaks git --pre-commit --redact --staged --verbose"
5151
language: system
52+
5253
- id: check-commit-signing
5354
name: Check commit signing
5455
description: Ensures that commits are GPG signed

0 commit comments

Comments
 (0)