Skip to content

Limit available dashboard routes for ciab #531

Limit available dashboard routes for ciab

Limit available dashboard routes for ciab #531

name: Dashboard PR Review
on:
workflow_dispatch:
inputs:
pr_number:
description: 'PR number to review'
required: true
pull_request:
types: [opened, ready_for_review]
paths:
- 'client/dashboard/**'
concurrency:
group: dashboard-pr-review-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
id-token: write
jobs:
review:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Dashboard PR Review
uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
prompt: |
Read and follow the instructions in .github/prompts/dashboard-pr-review.md
Use `mcp__github_inline_comment__create_inline_comment` for review.
claude_args: |
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh api:*),Bash(git show:*),Bash(git diff:*),Bash(git ls-files:*),Bash(git grep:*),Bash(rg *)"