diff options
| author | opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com> | 2026-01-17 13:36:54 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-17 13:36:54 -0600 |
| commit | 3aff88c23d139f47af7f4db7bbc14e08a30f3b6e (patch) | |
| tree | 419e85d8e69f584e91a8a91a8480fec422d39365 | |
| parent | 58f7da6e9f8fb08a9f42a0d2cc34a18b2475ddea (diff) | |
| download | opencode-3aff88c23d139f47af7f4db7bbc14e08a30f3b6e.tar.gz opencode-3aff88c23d139f47af7f4db7bbc14e08a30f3b6e.zip | |
docs: add use_github_token to example (#9120)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <[email protected]>
| -rw-r--r-- | github/README.md | 2 | ||||
| -rw-r--r-- | packages/web/src/content/docs/github.mdx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/github/README.md b/github/README.md index 8238bdc42..17b24ffb1 100644 --- a/github/README.md +++ b/github/README.md @@ -91,8 +91,10 @@ This will walk you through installing the GitHub app, creating the workflow, and uses: anomalyco/opencode/github@latest env: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: model: anthropic/claude-sonnet-4-20250514 + use_github_token: true ``` 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. diff --git a/packages/web/src/content/docs/github.mdx b/packages/web/src/content/docs/github.mdx index 6e8b9de4d..a31fe1e7b 100644 --- a/packages/web/src/content/docs/github.mdx +++ b/packages/web/src/content/docs/github.mdx @@ -180,8 +180,10 @@ jobs: - uses: anomalyco/opencode/github@latest env: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: model: anthropic/claude-sonnet-4-20250514 + use_github_token: true prompt: | Review this pull request: - Check for code quality issues |
