forked from gitleaks/gitleaks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
22 lines (20 loc) · 934 Bytes
/
.pre-commit-hooks.yaml
File metadata and controls
22 lines (20 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- id: gitleaks
name: Detect hardcoded secrets
description: Detect hardcoded secrets using Gitleaks
entry: gitleaks protect --verbose --redact --staged
language: golang
pass_filenames: false
- id: gitleaks-no-patch-files
name: Detect hardcoded secrets
description: Detect hardcoded secrets using Gitleaks. This variant of the hook does not utilize `git diff` to generate patch files for scanning.
Instead, it scans the full contents of files passed to it by the pre-commit framework. To utilize a particular configuration file, set the GITLEAKS_CONFIG
environment variable.
entry: gitleaks detect --verbose --redact --no-git --log-level trace
language: golang
pass_filenames: true
require_serial: true
- id: gitleaks-docker
name: Detect hardcoded secrets
description: Detect hardcoded secrets using Gitleaks
entry: zricethezav/gitleaks protect --verbose --redact --staged
language: docker_image