Skip to content

Commit 95d4942

Browse files
committed
Update Claude Code GitHub Workflow (#235)
* "Update Claude PR Assistant workflow" * "Update Claude Code Review workflow" * fix: allow CodeFactor bot to trigger Claude Code Review workflow The claude-code-action@v1 blocks bot actors by default for security. Added 'codefactor-io[bot]' to allowed_bots parameter to permit automated CodeFactor commits to trigger the code review workflow. This resolves the "Workflow initiated by non-human actor" error that occurred when CodeFactor made automated commits to PRs. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> fix: Correct Claude Code Review workflow plugin configuration The Claude Code Review workflow was crashing with SDK errors due to incorrect plugin configuration syntax introduced in commit ebf913f. - Plugin marketplace format was incorrect: used full git URL instead of GitHub short format - Plugin reference format was wrong: `code-review@claude-code-plugins` instead of `code-review` - Prompt used CLI command syntax instead of natural language instructions - Changed `plugin_marketplaces` from `https://github.com/anthropics/claude-code.git` to `anthropics/claude-code` - Changed `plugins` from `code-review@claude-code-plugins` to `code-review` - Replaced CLI command prompt with descriptive natural language instructions - Kept existing `allowed_bots: 'codefactor-io[bot]'` configuration - GitHub Actions workflow should complete without exit code 1 - No SDK crash errors in logs - Claude successfully posts review comments on PRs - [Claude Code Plugins Documentation](https://code.claude.com/docs/en/plugins) - [Discover and install prebuilt plugins](https://code.claude.com/docs/en/discover-plugins) - [Code-Review Plugin README](https://github.com/anthropics/claude-code/blob/main/plugins/code-review/README.md) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> fix: Use full Git URL format for Claude Code plugin marketplace Changes plugin_marketplaces from short format 'anthropics/claude-code' to full Git URL 'https://github.com/anthropics/claude-code.git' to resolve "Invalid marketplace URL format" error in GitHub Actions workflow. The claude-code-action requires full Git URLs ending in .git for the plugin_marketplaces parameter as specified in its action.yml. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> fix: Add required permissions to Claude Code Review workflow Added additional_permissions to allow Claude bot to: - Run GitHub CLI commands (gh pr view, etc.) - Execute Swift build and test commands - Use the code-review skill This resolves permission denials that prevented the code review workflow from functioning properly. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> fix: Remove Swift build/test permissions from code review workflow Removed Swift build and test permissions since the Ubuntu runner doesn't have Swift installed. Code review focuses on static analysis of code changes, while build/test verification is handled by the main CI workflow with proper Swift containers. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> fix: Use claude_args with --allowedTools instead of additional_permissions The additional_permissions parameter is only for GitHub API permissions (like actions: read), not Claude Code tool permissions. Tool permissions should be granted via claude_args with --allowedTools: - Bash(gh *) for GitHub CLI commands - Skill(code-review:*) for the code-review skill This fixes the "Invalid permission value 'Skill' for '- tool'" error. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Enable download-platform for iOS, watchOS, tvOS, and visionOS Added 'download-platform' option to various build matrices. Enable download-platform for iOS, watchOS, tvOS, and visionOS Added 'download-platform' option to various build matrices.
1 parent cb27cef commit 95d4942

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/MistKit.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,14 @@ jobs:
9999
xcode: "/Applications/Xcode_16.4.app"
100100
deviceName: "iPhone 16e"
101101
osVersion: "18.5"
102+
download-platform: true
102103

103104
- type: ios
104105
runs-on: macos-15
105106
xcode: "/Applications/Xcode_16.3.app"
106107
deviceName: "iPhone 16"
107108
osVersion: "18.4"
109+
download-platform: true
108110

109111

110112
# watchOS Build Matrix
@@ -113,20 +115,23 @@ jobs:
113115
xcode: "/Applications/Xcode_26.0.app"
114116
deviceName: "Apple Watch Ultra 3 (49mm)"
115117
osVersion: "26.0"
118+
download-platform: true
116119

117120
# tvOS Build Matrix
118121
- type: tvos
119122
runs-on: macos-15
120123
xcode: "/Applications/Xcode_26.0.app"
121124
deviceName: "Apple TV"
122125
osVersion: "26.0"
126+
download-platform: true
123127

124128
# visionOS Build Matrix
125129
- type: visionos
126130
runs-on: macos-15
127131
xcode: "/Applications/Xcode_26.0.app"
128132
deviceName: "Apple Vision Pro"
129133
osVersion: "26.0"
134+
download-platform: true
130135

131136
steps:
132137
- uses: actions/checkout@v4

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Claude Code Review
22

33
on:
44
pull_request:
5-
types: [opened, synchronize]
5+
types: [opened, synchronize, ready_for_review, reopened]
66
# Optional: Only run on specific file changes
77
# paths:
88
# - "src/**/*.ts"
@@ -36,6 +36,7 @@ jobs:
3636
uses: anthropics/claude-code-action@v1
3737
with:
3838
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
39+
allowed_bots: 'codefactor-io[bot]'
3940
prompt: |
4041
Please review this pull request and provide feedback on:
4142
- Code quality and best practices

0 commit comments

Comments
 (0)