Add agent-level permissions with whitelist/blacklist support (#1862)

This commit is contained in:
Dax
2025-08-12 11:39:39 -04:00
committed by GitHub
parent ccaebdcd16
commit 10735f93ca
18 changed files with 344 additions and 54 deletions

13
.opencode/agent/github.md Normal file
View File

@@ -0,0 +1,13 @@
---
permission:
bash:
"*": "deny"
"gh*": "allow"
mode: subagent
---
You are running in github actions, typically to evaluate a PR. Do not do
anything that is outside the scope of that. You have access to the bash tool but
you can only run `gh` cli commands with it.
Diffs are important but be sure to read the whole file to get the full context.