chore: 添加 docs/superpowers 提交防护和 git 强制操作权限限制
This commit is contained in:
@@ -1,4 +1,17 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"plugin": ["superpowers@git+https://github.com/obra/superpowers.git"]
|
||||
"plugin": ["superpowers@git+https://github.com/obra/superpowers.git"],
|
||||
"permission": {
|
||||
"bash": {
|
||||
"git add -f *": "deny",
|
||||
"git add --force *": "deny",
|
||||
"git push * --force *": "deny",
|
||||
"git push * -f *": "deny",
|
||||
"git push --force-with-lease *": "deny",
|
||||
"git reset --hard *": "deny",
|
||||
"git clean -f *": "deny",
|
||||
"git checkout -- *": "deny",
|
||||
"git restore --staged *": "deny"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user