-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
26 lines (25 loc) · 980 Bytes
/
.pre-commit-hooks.yaml
File metadata and controls
26 lines (25 loc) · 980 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
- id: ai-guardian-scan
name: AI Guardian — scan files for LLM security threats
description: >
Scans staged files for prompt injection, PII leaks, jailbreaks, and other
OWASP LLM Top 10 threats using AI Guardian (aig-guardian).
language: python
entry: aig
args: [scan, --file]
additional_dependencies: [aig-guardian]
types: [text]
# By default, scan only prompt/template files.
# Override with `files:` in your .pre-commit-config.yaml to scan Python source.
files: \.(txt|md|yaml|yml|json|jinja|jinja2|j2|prompt)$
pass_filenames: true
- id: ai-guardian-scan-python
name: AI Guardian — scan Python files for hardcoded LLM prompts
description: >
Scans Python source files for hardcoded prompts that may contain security
threats. Useful for catching developer mistakes before they reach production.
language: python
entry: aig
args: [scan, --file]
additional_dependencies: [aig-guardian]
types: [python]
pass_filenames: true