forked from anthropics/claude-code-security-review
-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (27 loc) · 880 Bytes
/
code-review.yml
File metadata and controls
31 lines (27 loc) · 880 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
26
27
28
29
30
31
name: Code Review
concurrency:
group: code-review-${{ github.event.pull_request.number || github.event.issue.number }}
cancel-in-progress: true # Cancels older runs when new commits arrive
on:
pull_request:
types: [opened, synchronize, reopened, labeled, ready_for_review]
issue_comment:
types: [created]
workflow_dispatch:
jobs:
code-review:
runs-on: ubuntu-24.04
if: github.event_name == 'pull_request' || (github.event_name == 'issue_comment' && github.event.issue.pull_request)
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
fetch-depth: 2
- uses: ./
with:
comment-pr: true
upload-results: true
claude-api-key: ${{ secrets.CLAUDE_API_KEY }}