Skip to content

Commit 2078a75

Browse files
committed
Configure Claude GitHub Actions workflow
- Remove automatic code review workflow to avoid unnecessary token usage - Clean up claude.yml by removing commented configuration options - Enable Claude Opus 4 model and sticky comments - Add Bazel setup step for proper toolchain access - Allow essential bash commands: bazelisk, git, find, grep, cat, and version updates Manual reviews are still available via @claude mentions in PR comments.
1 parent b8ae4cd commit 2078a75

2 files changed

Lines changed: 10 additions & 102 deletions

File tree

.github/workflows/claude-code-review.yml

Lines changed: 0 additions & 78 deletions
This file was deleted.

.github/workflows/claude.yml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,21 @@ jobs:
3030
with:
3131
fetch-depth: 1
3232

33+
- name: Setup Bazel
34+
uses: bazel-contrib/setup-bazel@0.15.0
35+
with:
36+
bazelisk-cache: true
37+
disk-cache: ${{ github.workflow }}
38+
repository-cache: true
39+
3340
- name: Run Claude Code
3441
id: claude
3542
uses: anthropics/claude-code-action@beta
3643
with:
3744
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
38-
39-
# This is an optional setting that allows Claude to read CI results on PRs
4045
additional_permissions: |
4146
actions: read
42-
43-
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
44-
# model: "claude-opus-4-20250514"
45-
46-
# Optional: Customize the trigger phrase (default: @claude)
47-
# trigger_phrase: "/claude"
48-
49-
# Optional: Trigger when specific user is assigned to an issue
50-
# assignee_trigger: "claude-bot"
51-
52-
# Optional: Allow Claude to run specific commands
53-
# allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
54-
55-
# Optional: Add custom instructions for Claude to customize its behavior for your project
56-
# custom_instructions: |
57-
# Follow our coding standards
58-
# Ensure all new code has tests
59-
# Use TypeScript for new files
60-
61-
# Optional: Custom environment variables for Claude
62-
# claude_env: |
63-
# NODE_ENV: test
47+
model: "claude-opus-4-20250514"
48+
use_sticky_comment: true
49+
allowed_tools: "Bash(bazelisk *),Bash(git *),Bash(python tools/update_versions.py),Bash(find *),Bash(grep *),Bash(cat *)"
6450

0 commit comments

Comments
 (0)