From e840c4f80a28f96939d02dd37ddddc6f69ac4bf4 Mon Sep 17 00:00:00 2001 From: Keisuke SATO Date: Wed, 9 Jul 2025 14:33:34 +0900 Subject: [PATCH] feat: Add build permissions to Claude GitHub Actions Enable Claude Code Action to execute npm commands including: - npm install - npm run build - npm run test - npm run lint - npm run typecheck This allows Claude to perform necessary development tasks when responding to PR reviews and issue comments. --- .github/workflows/claude-code-review.yml | 2 +- .github/workflows/claude.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 5bf8ce5..03bc509 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -69,7 +69,7 @@ jobs: # 'Please provide a thorough code review focusing on our coding standards and best practices.' }} # Optional: Add specific tools for running tests or linting - # allowed_tools: "Bash(npm run test),Bash(npm run lint),Bash(npm run typecheck)" + allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test),Bash(npm run lint),Bash(npm run typecheck)" # Optional: Skip review for certain conditions # if: | diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 64a3e5b..e449349 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -50,7 +50,7 @@ jobs: # assignee_trigger: "claude-bot" # Optional: Allow Claude to run specific commands - # allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)" + allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)" # Optional: Add custom instructions for Claude to customize its behavior for your project # custom_instructions: |