-
Notifications
You must be signed in to change notification settings - Fork 4k
Expand file tree
/
Copy pathpermissive.yaml
More file actions
42 lines (36 loc) · 1.05 KB
/
permissive.yaml
File metadata and controls
42 lines (36 loc) · 1.05 KB
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
40
41
42
version: "1"
description: "GitHub MCP — permissive policy. All tools allowed. Rate limits on destructive and high-risk operations."
default: allow
tools:
# Destructive — blocked even in permissive mode
delete_file:
rules:
- action: deny
on_deny: "File deletion blocked by policy"
# High-risk writes — rate limited
merge_pull_request:
rules:
- name: "rate-limit"
rate_limit: "20/hour"
on_deny: "Max 20 merges per hour"
push_files:
rules:
- name: "rate-limit"
rate_limit: "30/hour"
on_deny: "Max 30 pushes per hour"
actions_run_trigger:
rules:
- name: "rate-limit"
rate_limit: "10/hour"
on_deny: "Max 10 workflow triggers per hour"
create_repository:
rules:
- name: "rate-limit"
rate_limit: "10/hour"
on_deny: "Max 10 repository creations per hour"
# Global safety net
"*":
rules:
- name: "global-rate-limit"
rate_limit: "180/minute"
on_deny: "Global rate limit — max 180 tool calls per minute"