Dax Raad 6 месяцев назад
Родитель
Сommit
2c2752ee02

+ 2 - 1
.github/workflows/duplicate-issues.yml

@@ -23,8 +23,9 @@ jobs:
         env:
           ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          OPENCODE_PERMISSION: { "bash": { "gh*": "allow", "*": "deny" } }
         run: |
-          opencode run --agent github -m anthropic/claude-sonnet-4-20250514 "A new issue has been created: '${{ github.event.issue.title }}'
+          opencode run -m anthropic/claude-sonnet-4-20250514 "A new issue has been created: '${{ github.event.issue.title }}'
 
           Issue body:
           ${{ github.event.issue.body }}

+ 2 - 1
.github/workflows/guidelines-check.yml

@@ -23,8 +23,9 @@ jobs:
         env:
           ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          OPENCODE_PERMISSION: { "bash": { "gh*": "allow", "*": "deny" } }
         run: |
-          opencode run --agent github -m anthropic/claude-sonnet-4-20250514 "A new pull request has been created: '${{ github.event.pull_request.title }}'
+          opencode run -m anthropic/claude-sonnet-4-20250514 "A new pull request has been created: '${{ github.event.pull_request.title }}'
 
           PR description:
           ${{ github.event.pull_request.body }}

+ 0 - 13
.opencode/agent/github.md

@@ -1,13 +0,0 @@
----
-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.