From c2489ca663d44d8cd17c5100f72ca79a72bf49a3 Mon Sep 17 00:00:00 2001 From: adam jones Date: Fri, 8 Aug 2025 14:27:55 +0100 Subject: [PATCH] Update Claude workflow configuration (#234) ## Summary - Enable additional permissions for Claude to read CI results - Configure Claude to trigger when assigned to issues - Allow bash command execution for this public repository - Add custom instructions for concise GitHub comment formatting --- .github/workflows/claude.yml | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index b4498b0..b09fc3e 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -23,7 +23,7 @@ jobs: pull-requests: read issues: read id-token: write - actions: read # Required for Claude to read CI results on PRs + actions: read steps: - name: Checkout repository uses: actions/checkout@v4 @@ -36,28 +36,16 @@ jobs: with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} - # This is an optional setting that allows Claude to read CI results on PRs + # Allow Claude to read CI results on PRs additional_permissions: | actions: read + + # Trigger when assigned to an issue + assignee_trigger: "claude" - # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4.1) - # model: "claude-opus-4-1-20250805" + # Allow Claude to run bash + # This should be safe given the repo is already public + allowed_tools: "Bash" - # Optional: Customize the trigger phrase (default: @claude) - # trigger_phrase: "/claude" - - # Optional: Trigger when specific user is assigned to an issue - # 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:*)" - - # Optional: Add custom instructions for Claude to customize its behavior for your project - # custom_instructions: | - # Follow our coding standards - # Ensure all new code has tests - # Use TypeScript for new files - - # Optional: Custom environment variables for Claude - # claude_env: | - # NODE_ENV: test \ No newline at end of file + custom_instructions: | + If posting a comment to GitHub, give a concise summary of the comment at the top and put all the details in a
block.