Skip to content

Commit 0a83747

Browse files
authored
Merge pull request #3332 from AtCoder-NoviSteps/#3331
chore: add sandbox and permission restrictions to Claude Code settings
2 parents c1b4620 + c5532e7 commit 0a83747

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.claude/settings.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
11
{
2+
"sandbox": {
3+
"enabled": true,
4+
"allowUnsandboxedCommands": false,
5+
"filesystem": {
6+
"denyRead": ["~/.ssh"]
7+
}
8+
},
9+
"permissions": {
10+
"deny": [
11+
"Bash(rm -rf *)",
12+
"Bash(curl *)",
13+
"Bash(wget *)",
14+
"Bash(git push *)",
15+
"Bash(chmod 777 *)",
16+
"Read(**/.env)",
17+
"Read(**/.env.*)",
18+
"Read(**/secrets/**)",
19+
"Read(**/config/credentials.json)",
20+
"Read(**/*.pem)",
21+
"Read(**/*.key)"
22+
]
23+
},
224
"enabledPlugins": {
325
"superpowers@superpowers-dev": true
426
},

0 commit comments

Comments
 (0)