Skip to content

Commit 40fec20

Browse files
authored
Merge branch 'main' into main
2 parents 657519b + bc423b4 commit 40fec20

25 files changed

+437
-92
lines changed

.github/workflows/claude.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ jobs:
3636
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
3737
allowed_tools: "Bash(bun install),Bash(bun test:*),Bash(bun run format),Bash(bun typecheck)"
3838
custom_instructions: "You have also been granted tools for editing files and running bun commands (install, run, test, typecheck) for testing your changes: bun install, bun test, bun run format, bun typecheck."
39-
model: "claude-opus-4-20250514"
39+
model: "claude-opus-4-1-20250805"

ROADMAP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Thank you for trying out the beta of our GitHub Action! This document outlines o
1010
- **Support for workflow_dispatch and repository_dispatch events** - Dispatch Claude on events triggered via API from other workflows or from other services
1111
- **Ability to disable commit signing** - Option to turn off GPG signing for environments where it's not required. This will enable Claude to use normal `git` bash commands for committing. This will likely become the default behavior once added.
1212
- **Better code review behavior** - Support inline comments on specific lines, provide higher quality reviews with more actionable feedback
13-
- **Support triggering @claude from bot users** - Allow automation and bot accounts to invoke Claude
13+
- ~**Support triggering @claude from bot users** - Allow automation and bot accounts to invoke Claude~
1414
- **Customizable base prompts** - Full control over Claude's initial context with template variables like `$PR_COMMENTS`, `$PR_FILES`, etc. Users can replace our default prompt entirely while still accessing key contextual data
1515

1616
---

action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ inputs:
2323
description: "The prefix to use for Claude branches (defaults to 'claude/', use 'claude-' for dash format)"
2424
required: false
2525
default: "claude/"
26+
allowed_bots:
27+
description: "Comma-separated list of allowed bot usernames, or '*' to allow all bots. Empty string (default) allows no bots."
28+
required: false
29+
default: ""
2630

2731
# Mode configuration
2832
mode:
@@ -164,6 +168,7 @@ runs:
164168
OVERRIDE_PROMPT: ${{ inputs.override_prompt }}
165169
MCP_CONFIG: ${{ inputs.mcp_config }}
166170
OVERRIDE_GITHUB_TOKEN: ${{ inputs.github_token }}
171+
ALLOWED_BOTS: ${{ inputs.allowed_bots }}
167172
GITHUB_RUN_ID: ${{ github.run_id }}
168173
USE_STICKY_COMMENT: ${{ inputs.use_sticky_comment }}
169174
STICKY_COMMENT_APP_BOT_ID: ${{ inputs.sticky_comment_app_bot_id }}
@@ -182,7 +187,7 @@ runs:
182187
echo "Base-action dependencies installed"
183188
cd -
184189
# Install Claude Code globally
185-
bun install -g @anthropic-ai/[email protected].69
190+
bun install -g @anthropic-ai/[email protected].72
186191
187192
- name: Setup Network Restrictions
188193
if: steps.prepare.outputs.contains_trigger == 'true' && inputs.experimental_allowed_domains != ''

base-action/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Add the following to your workflow file:
6969
uses: anthropics/claude-code-base-action@beta
7070
with:
7171
prompt: "Review and fix TypeScript errors"
72-
model: "claude-opus-4-20250514"
72+
model: "claude-opus-4-1-20250805"
7373
fallback_model: "claude-sonnet-4-20250514"
7474
allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
7575
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
@@ -217,7 +217,7 @@ Provide the settings configuration directly as a JSON string:
217217
prompt: "Your prompt here"
218218
settings: |
219219
{
220-
"model": "claude-opus-4-20250514",
220+
"model": "claude-opus-4-1-20250805",
221221
"env": {
222222
"DEBUG": "true",
223223
"API_URL": "https://api.example.com"

base-action/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ runs:
118118
119119
- name: Install Claude Code
120120
shell: bash
121-
run: bun install -g @anthropic-ai/[email protected].69
121+
run: bun install -g @anthropic-ai/[email protected].72
122122

123123
- name: Run Claude Code Action
124124
shell: bash

base-action/test/setup-claude-code-settings.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ describe("setupClaudeCodeSettings", () => {
134134
// Then, add new settings
135135
const newSettings = JSON.stringify({
136136
newKey: "newValue",
137-
model: "claude-opus-4-20250514",
137+
model: "claude-opus-4-1-20250805",
138138
});
139139

140140
await setupClaudeCodeSettings(newSettings, testHomeDir);
@@ -145,7 +145,7 @@ describe("setupClaudeCodeSettings", () => {
145145
expect(settings.enableAllProjectMcpServers).toBe(true);
146146
expect(settings.existingKey).toBe("existingValue");
147147
expect(settings.newKey).toBe("newValue");
148-
expect(settings.model).toBe("claude-opus-4-20250514");
148+
expect(settings.model).toBe("claude-opus-4-1-20250805");
149149
});
150150

151151
test("should copy slash commands to .claude directory when path provided", async () => {

docs/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ You can provide Claude Code settings to customize behavior such as model selecti
252252
with:
253253
settings: |
254254
{
255-
"model": "claude-opus-4-20250514",
255+
"model": "claude-opus-4-1-20250805",
256256
"env": {
257257
"DEBUG": "true",
258258
"API_URL": "https://api.example.com"

docs/security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Access Control
44

55
- **Repository Access**: The action can only be triggered by users with write access to the repository
6-
- **No Bot Triggers**: GitHub Apps and bots cannot trigger this action
6+
- **Bot User Control**: By default, GitHub Apps and bots cannot trigger this action for security reasons. Use the `allowed_bots` parameter to enable specific bots or all bots
77
- **Token Permissions**: The GitHub app receives only a short-lived token scoped specifically to the repository it's operating in
88
- **No Cross-Repository Access**: Each action invocation is limited to the repository where it was triggered
99
- **Limited Scope**: The token cannot access other repositories or perform actions beyond the configured permissions

docs/usage.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242
# Optional: grant additional permissions (requires corresponding GitHub token permissions)
4343
# additional_permissions: |
4444
# actions: read
45+
# Optional: allow bot users to trigger the action
46+
# allowed_bots: "dependabot[bot],renovate[bot]"
4547
```
4648

4749
## Inputs
@@ -76,6 +78,7 @@ jobs:
7678
| `additional_permissions` | Additional permissions to enable. Currently supports 'actions: read' for viewing workflow results | No | "" |
7779
| `experimental_allowed_domains` | Restrict network access to these domains only (newline-separated). | No | "" |
7880
| `use_commit_signing` | Enable commit signing using GitHub's commit signature verification. When false, Claude uses standard git commands | No | `false` |
81+
| `allowed_bots` | Comma-separated list of allowed bot usernames, or '\*' to allow all bots. Empty string (default) allows no bots | No | "" |
7982
| `sticky_comment_app_bot_id` | The ID of the app bot that will be used to create the sticky comment. Defaults to the Claude app bot ID. | No | `209825114` |
8083
| `sticky_comment_app_bot_name` | The name of the app bot that will be used to create the sticky comment. Defaults to 'claude'. | No | `claude` |
8184

scripts/install-hooks.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ echo "Installing git hooks..."
66
# Make sure hooks directory exists
77
mkdir -p .git/hooks
88

9-
# Install pre-push hook
10-
cp scripts/pre-push .git/hooks/pre-push
11-
chmod +x .git/hooks/pre-push
9+
# Install pre-commit hook
10+
cp scripts/pre-commit .git/hooks/pre-commit
11+
chmod +x .git/hooks/pre-commit
1212

1313
echo "Git hooks installed successfully!"

0 commit comments

Comments
 (0)