Skip to content

Commit 3aff88c

Browse files
docs: add use_github_token to example (anomalyco#9120)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
1 parent 58f7da6 commit 3aff88c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

github/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ This will walk you through installing the GitHub app, creating the workflow, and
9191
uses: anomalyco/opencode/github@latest
9292
env:
9393
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9495
with:
9596
model: anthropic/claude-sonnet-4-20250514
97+
use_github_token: true
9698
```
9799
98100
3. Store the API keys in secrets. In your organization or project **settings**, expand **Secrets and variables** on the left and select **Actions**. Add the required API keys.

packages/web/src/content/docs/github.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,10 @@ jobs:
180180
- uses: anomalyco/opencode/github@latest
181181
env:
182182
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
183+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
183184
with:
184185
model: anthropic/claude-sonnet-4-20250514
186+
use_github_token: true
185187
prompt: |
186188
Review this pull request:
187189
- Check for code quality issues

0 commit comments

Comments
 (0)