From 10735f93ca97a1a9eedc3a245ab627bd00e72082 Mon Sep 17 00:00:00 2001 From: Dax Date: Tue, 12 Aug 2025 11:39:39 -0400 Subject: Add agent-level permissions with whitelist/blacklist support (#1862) --- .opencode/agent/github.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .opencode/agent/github.md (limited to '.opencode/agent') 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. -- cgit v1.2.3