-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.ai-code-gate.yml
More file actions
39 lines (35 loc) · 776 Bytes
/
.ai-code-gate.yml
File metadata and controls
39 lines (35 loc) · 776 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
33
34
35
36
37
38
39
# AI Code Gate — Default Policy
# Balanced defaults for most teams getting started with AI code governance.
detection:
labels: ["ai-generated", "copilot", "claude"]
co_authors: ["*[bot]@*", "*noreply@anthropic.com"]
policy:
allowed_patterns:
- "src/**/*.ts"
- "src/**/*.tsx"
- "tests/**"
blocked_patterns:
- "*.env*"
- "**/auth/**"
- "docker-compose*.yml"
- ".github/workflows/**"
scope_limits:
max_files: 20
max_lines_added: 500
review:
risk_tiers:
low:
threshold: 30
approvals: 0
auto_merge: true
medium:
threshold: 70
approvals: 1
high:
threshold: 100
approvals: 2
require_security_team: true
audit:
enabled: true
output_format: json
retention_days: 90