Skip to content

Commit e8bc46f

Browse files
authored
Chore: [AEA-0000] - use gitleaks for secret scanning (#1001)
use gitleaks for secret scanning
1 parent 581788f commit e8bc46f

2 files changed

Lines changed: 4 additions & 24 deletions

File tree

.gitallowed

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

.pre-commit-config.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,13 @@ repos:
8787
types_or: [sh, shell]
8888
pass_filenames: false
8989

90-
- repo: local
91-
hooks:
92-
- id: git-secrets
93-
name: Git Secrets
94-
description: git-secrets scans commits, commit messages, and --no-ff merges to prevent adding secrets into your git repositories.
90+
- id: gitleaks
91+
name: Git Leaks
92+
description: gitleaks scans commits, commit messages, and --no-ff merges to prevent adding secrets into your git repositories.
9593
entry: bash
9694
args:
9795
- -c
98-
- 'git-secrets --pre_commit_hook'
96+
- "gitleaks git --pre-commit --redact --staged --verbose"
9997
language: system
10098
fail_fast: true
10199
default_stages: [pre-commit]

0 commit comments

Comments
 (0)