summaryrefslogtreecommitdiffhomepage
path: root/.opencode/agent/github.md
diff options
context:
space:
mode:
authorDax <[email protected]>2025-08-12 11:39:39 -0400
committerGitHub <[email protected]>2025-08-12 11:39:39 -0400
commit10735f93ca97a1a9eedc3a245ab627bd00e72082 (patch)
tree9cc7718f9819fa61efeaa18e35dee7971f73b371 /.opencode/agent/github.md
parentccaebdcd16438d0ede6291d3b4f82e19e0143610 (diff)
downloadopencode-10735f93ca97a1a9eedc3a245ab627bd00e72082.tar.gz
opencode-10735f93ca97a1a9eedc3a245ab627bd00e72082.zip
Add agent-level permissions with whitelist/blacklist support (#1862)
Diffstat (limited to '.opencode/agent/github.md')
-rw-r--r--.opencode/agent/github.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/.opencode/agent/github.md b/.opencode/agent/github.md
new file mode 100644
index 000000000..da3aa4518
--- /dev/null
+++ b/.opencode/agent/github.md
@@ -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.