Skip to content

Commit e2cfb7c

Browse files
committed
Claude - react on review workflow
1 parent 53c9da6 commit e2cfb7c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "Claude React On Review"
2+
3+
on:
4+
pull_request_review:
5+
types: [submitted]
6+
7+
jobs:
8+
claude:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
actions: write
13+
if: github.event.pull_request.user.login == 'phpstan-bot'
14+
steps:
15+
- name: Harden the runner (Audit all outbound calls)
16+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
17+
with:
18+
egress-policy: audit
19+
20+
- name: Trigger Claude Review PR
21+
env:
22+
GH_TOKEN: ${{ secrets.PHPSTAN_BOT_TOKEN }}
23+
run: gh workflow run claude-pr-review.yml -f pr_number=${{ github.event.pull_request.number }} -f review_id=${{ github.event.review.id }} --repo phpstan-bot/phpstan-src

0 commit comments

Comments
 (0)