Skip to content

Commit 810c635

Browse files
authored
Chore: [AEA-0000] - use gitleaks for secret scanning (#726)
use gitleaks for secret scanning
1 parent 7fbb4a4 commit 810c635

2 files changed

Lines changed: 11 additions & 37 deletions

File tree

.gitallowed

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

.pre-commit-config.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
name: black
2121
entry: poetry run black .
2222
language: system
23-
types: [python]
23+
types: [ python ]
2424

2525
- repo: local
2626
hooks:
@@ -29,7 +29,7 @@ repos:
2929
entry: actionlint
3030
language: system
3131
files: ^.github
32-
types_or: [yaml]
32+
types_or: [ yaml ]
3333
pass_filenames: false
3434

3535
- repo: local
@@ -38,22 +38,22 @@ repos:
3838
name: pyright
3939
entry: poetry run pyright
4040
language: system
41-
types: [python]
41+
types: [ python ]
4242

4343
- repo: local
4444
hooks:
4545
- id: run_flake8
4646
name: flake8
4747
entry: poetry run flake8
4848
language: system
49-
types: [python]
49+
types: [ python ]
5050

5151
- repo: local
5252
hooks:
5353
- id: grype-scan-local
5454
name: Grype scan local changes
5555
entry: make
56-
args: ["grype-scan-local"]
56+
args: [ "grype-scan-local" ]
5757
language: system
5858
pass_filenames: false
5959
always_run: true
@@ -78,14 +78,15 @@ repos:
7878
pass_filenames: false
7979
always_run: true
8080

81-
- id: git-secrets
82-
name: Git Secrets
83-
description: git-secrets scans commits, commit messages, and --no-ff merges to prevent adding secrets into your git repositories.
81+
- id: gitleaks
82+
name: Git Leaks
83+
description: gitleaks scans commits, commit messages, and --no-ff merges to
84+
prevent adding secrets into your git repositories.
8485
entry: bash
8586
args:
8687
- -c
87-
- "git-secrets --pre_commit_hook"
88+
- "gitleaks git --pre-commit --redact --staged --verbose"
8889
language: system
8990

9091
fail_fast: false
91-
default_stages: [pre-commit, pre-commit]
92+
default_stages: [ pre-commit, pre-commit ]

0 commit comments

Comments
 (0)