-
Notifications
You must be signed in to change notification settings - Fork 156
25 lines (22 loc) · 944 Bytes
/
claude.yml
File metadata and controls
25 lines (22 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Claude Code Review
on:
# Use pull_request_target to allow secrets access for fork PRs.
# The reusable workflow only runs for trusted contributors (OWNER/MEMBER/COLLABORATOR).
pull_request_target: # zizmor: ignore[dangerous-triggers] See rationale above.
branches: ["main"]
types: [opened, synchronize, ready_for_review, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
jobs:
claude-review:
uses: mozilla/actions/.github/workflows/claude-review.yml@25cb84d060946c0ad6d2c3f79da479b16d180d71 # v1.1.0
permissions:
contents: read
pull-requests: write # Required to post review comments.
issues: read # Required to read issue context via MCP tools.
actions: read # Required to read workflow run context via MCP tools.
secrets:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}