mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 06:54:13 +08:00
fix: add explicit review tool names and additional workflow permissions
- Add explicit tool names in case wildcards aren't working properly - Add statuses and checks write permissions to workflow - Include both github and github_comment MCP server tools
This commit is contained in:
2
.github/workflows/claude-review-mode.yml
vendored
2
.github/workflows/claude-review-mode.yml
vendored
@@ -19,6 +19,8 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
issues: write
|
issues: write
|
||||||
|
statuses: write # May be needed for some review operations
|
||||||
|
checks: write # May be needed for review checks
|
||||||
# Note: id-token not needed since review mode doesn't use OIDC for GitHub auth
|
# Note: id-token not needed since review mode doesn't use OIDC for GitHub auth
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|||||||
@@ -47,7 +47,17 @@ export const reviewMode: Mode = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getAllowedTools() {
|
getAllowedTools() {
|
||||||
return ["mcp__github__*"];
|
return [
|
||||||
|
"mcp__github__*",
|
||||||
|
"mcp__github_comment__*",
|
||||||
|
// Explicitly list review tools in case wildcards aren't working
|
||||||
|
"mcp__github__create_pending_pull_request_review",
|
||||||
|
"mcp__github__add_comment_to_pending_review",
|
||||||
|
"mcp__github__submit_pending_pull_request_review",
|
||||||
|
"mcp__github__get_pull_request",
|
||||||
|
"mcp__github__get_pull_request_diff",
|
||||||
|
"mcp__github__get_pull_request_files"
|
||||||
|
];
|
||||||
},
|
},
|
||||||
|
|
||||||
getDisallowedTools() {
|
getDisallowedTools() {
|
||||||
|
|||||||
Reference in New Issue
Block a user