-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
30 lines (28 loc) · 917 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
30 lines (28 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Pre-commit hooks configuration
# Install: pip install pre-commit
# Setup: pre-commit install
# Run manually: pre-commit run --all-files
repos:
# Gitleaks - Secret scanning
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.2
hooks:
- id: gitleaks
name: Gitleaks - Detect hardcoded secrets
description: Detect hardcoded secrets using Gitleaks
entry: gitleaks detect --source . --verbose --redact --no-git
language: system
pass_filenames: false
stages: [pre-commit]
# Additional useful hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=20000']
- id: check-merge-conflict
- id: detect-private-key
name: Detect private keys (backup check)