Debian Codegraph @

.github/workflows/claude.yml

raw
1 name: Claude Code
2
3 # GITHUB_TOKEN needs contents:read and actions:read — required by
4 # claude-code-action for restoring trusted config files from the base branch.
5 # All other GitHub API access uses the App token.
6 permissions:
7 contents: read
8 actions: read
9
10 on:
11 issue_comment:
12 types: [created]
13 pull_request_review_comment:
14 types: [created]
15 pull_request_target:
16 types: [opened, reopened]
17
18 jobs:
19 claude:
20 uses: synadia-io/ai-workflows/.github/workflows/claude.yml@v2
21 with:
22 gh_app_id: ${{ vars.CLAUDE_GH_APP_ID }}
23 checkout_mode: "base"
24 review_focus: |
25 Additionally focus on:
26 - Goroutine leaks and proper channel/context cancellation
27 - Race conditions and correct mutex usage
28 - Error handling patterns (wrapping, sentinel errors)
29 - API compatibility with existing public interfaces
30 secrets:
31 claude_oauth_token: ${{ secrets.CLAUDE_OAUTH_TOKEN }}
32 gh_app_private_key: ${{ secrets.CLAUDE_GH_APP_PRIVATE_KEY }}
33