-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (30 loc) · 894 Bytes
/
.pre-commit-config.yaml
File metadata and controls
32 lines (30 loc) · 894 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
31
32
repos:
- repo: local
hooks:
- id: ultimate-bug-scanner
name: Ultimate Bug Scanner
entry: ubs --fail-on-warning
language: system
files: \.(js|jsx|ts|tsx|py|java)$
pass_filenames: true
always_run: false
# Security static analysis with Bandit
- repo: https://github.com/PyCQA/bandit
rev: 1.7.10
hooks:
- id: bandit
name: Bandit Security Linter
args: ["-f", "json", "-o", "bandist-results.json"]
pass_filenames: false
always_run: true
types: ["python"]
# Secret scanning with Gitleaks
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.3
hooks:
- id: gitleaks
name: Gitleaks Secret Detection
description: Detect secrets in your code
entry: gitleaks detect --source . --verbose
pass_filenames: false
always_run: true