fix: Correct Claude Code Review workflow plugin configuration#236
fix: Correct Claude Code Review workflow plugin configuration#236
Conversation
## Problem The Claude Code Review workflow was crashing with SDK errors due to incorrect plugin configuration syntax introduced in commit ebf913f. ## Root Cause - 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 ## Solution - 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 ## Expected Behavior - GitHub Actions workflow should complete without exit code 1 - No SDK crash errors in logs - Claude successfully posts review comments on PRs ## References - [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>
📝 WalkthroughWalkthroughUpdated the Claude Code Review workflow configuration by simplifying plugin marketplace and plugin references, and replacing a minimal prompt with a comprehensive multi-line assessment instruction that specifies evaluation criteria and comment posting behavior. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #236 +/- ##
==========================================
- Coverage 14.33% 14.27% -0.06%
==========================================
Files 67 67
Lines 7179 7179
==========================================
- Hits 1029 1025 -4
- Misses 6150 6154 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.github/workflows/claude-code-review.yml (1)
22-26:⚠️ Potential issue | 🟠 MajorChange
pull-requests: readtopull-requests: write.The
claude-code-actionrequires write permission on pull requests to post review comments. The current configuration grants only read access, which will prevent the action from posting comments despite the prompt instructing it to do so.Update the permissions block (lines 22-26) to include
pull-requests: write:permissions: contents: read pull-requests: write issues: read id-token: write
Problem Summary
The Claude Code Review workflow (
.github/workflows/claude-code-review.yml) was failing with SDK crashes due to incorrect plugin configuration syntax introduced in commitebf913f3on Feb 4, 2026.Current Broken Configuration (Before):
Root Cause:
code-review@claude-code-pluginsinstead ofcode-reviewSolution
Fixed Configuration (After):
Key Changes:
plugin_marketplacesto GitHub short format:anthropics/claude-codepluginsto simple plugin name:code-reviewallowed_bots: 'codefactor-io[bot]'configurationExpected Behavior
After this fix:
opened,synchronize,ready_for_review,reopenedTesting
This fix should be verified by:
References
Files Modified
.github/workflows/claude-code-review.yml(lines 39-42)Fixes the SDK crash and restores functionality to the Claude Code Review workflow.
Perform an AI-assisted review on
Summary by CodeRabbit