Skip to content

Commit b38f763

Browse files
edenreichclaude
andcommitted
chore(ci): Update Claude Code workflow configuration
- Upgrade actions/checkout to v6 - Add Go setup step with go-version-file - Update golangci-lint to v2.8.0 - Update task to v3.45.5 - Switch claude-code-action from @beta to @main - Migrate to new claude_args and settings format - Add additional coding style instructions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent cbf1b01 commit b38f763

File tree

1 file changed

+16
-32
lines changed

1 file changed

+16
-32
lines changed

.github/workflows/claude.yml

Lines changed: 16 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -31,54 +31,38 @@ jobs:
3131
actions: read
3232
steps:
3333
- name: Checkout repository
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@v6
3535
with:
3636
fetch-depth: 1
3737

38+
- name: Set up Go
39+
uses: actions/setup-go@v6.2.0
40+
with:
41+
go-version-file: go.mod
42+
cache: true
43+
3844
- name: Install golangci-lint
3945
run: |
40-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin v2.4.0
46+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin v2.8.0
4147
4248
- name: Install task
4349
run: |
44-
curl -s https://taskfile.dev/install.sh | sh -s -- -b /usr/local/bin v3.43.3
50+
curl -s https://taskfile.dev/install.sh | sh -s -- -b /usr/local/bin v3.45.5
4551
4652
- name: Run Claude Code
4753
id: claude
48-
uses: anthropics/claude-code-action@beta
54+
uses: anthropics/claude-code-action@main
4955
with:
5056
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
5157
additional_permissions: |
5258
actions: read
5359
use_commit_signing: true
5460
base_branch: main
55-
branch_prefix: 'claude/'
56-
custom_instructions: |
57-
IMPORTANT: You must NEVER push directly to the main branch. Always:
58-
1. Create a new feature branch (claude/feature-name)
59-
2. Make your changes on the feature branch
60-
3. Open a pull request to main
61-
4. Wait for review and approval before merging
62-
63-
COMMIT MESSAGE FORMAT: Always use conventional commits with capital letters.
64-
Follow the format: "type(scope): Description" where the description starts with a capital letter.
65-
Examples: "feat(a2a): Add retry mechanism for agent connections", "fix(auth): Resolve token validation issue"
66-
67-
Follow the development workflow specified in the coding instructions.
68-
69-
IMPORTANT: You never use interface{} type for generics - if you really have to use any.
70-
mcp_config: |
61+
branch_prefix: "claude/"
62+
claude_args: |
63+
--allowedTools "Bash(task:*),Bash(go:*),Bash(gh:*),Bash(git:*)"
64+
--mcp-config '{"mcpServers":{"context7":{"command":"npx","args":["-y","@upstash/context7-mcp@latest"],"env":{}}}}'
65+
settings: |
7166
{
72-
"mcpServers": {
73-
"context7": {
74-
"command": "npx",
75-
"args": ["-y", "@upstash/context7-mcp@latest"],
76-
"env": {}
77-
}
78-
}
67+
"systemPrompt": "IMPORTANT: You must NEVER push directly to the main branch. Always:\n1. Create a new feature branch (claude/feature-name)\n2. Make your changes on the feature branch\n3. Open a pull request to main\n4. Wait for review and approval before merging\n\nIMPORTANT: Always add a new line at the end of each file and follow the coding style guidelines.\n\nVERY IMPORTANT: You DO NOT care about backward compatibility - if you DO NOT need the code, simply delete it.\n\nVERY IMPORTANT: You DO NOT add inline comments above code inside of a function body - docblocks are ok for function and types signatures.\n\nIMPORTANT: You never use interface{} type for generics - if you really have to use any.\n\nCOMMIT MESSAGE FORMAT: Always use conventional commits with capital letters.\nFollow the format: \"type(scope): Description\" where the description starts with a capital letter.\nExamples: \"feat(a2a): Add retry mechanism for agent connections\", \"fix(auth): Resolve token validation issue\"\n\nFollow the development workflow specified in the coding instructions."
7968
}
80-
allowed_tools: |
81-
Bash(task:*)
82-
Bash(go:*)
83-
Bash(gh:*)
84-
Bash(git:*)

0 commit comments

Comments
 (0)