Skip to content

Commit 362dcbf

Browse files
authored
Set up environment for @claude, allow it make and uv, and reading CI logs (#2344)
1 parent ab92e67 commit 362dcbf

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/claude.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Claude PR Assistant
1+
name: Claude Code
22

33
on:
44
issue_comment:
@@ -10,6 +10,10 @@ on:
1010
pull_request_review:
1111
types: [submitted]
1212

13+
env:
14+
UV_PYTHON: 3.13
15+
UV_FROZEN: "1"
16+
1317
jobs:
1418
claude-code-action:
1519
if: |
@@ -23,14 +27,32 @@ jobs:
2327
pull-requests: read
2428
issues: read
2529
id-token: write
30+
actions: read
2631
steps:
2732
- name: Checkout repository
2833
uses: actions/checkout@v4
2934
with:
3035
fetch-depth: 1
3136

37+
- uses: astral-sh/setup-uv@v5
38+
with:
39+
enable-cache: true
40+
41+
- uses: denoland/setup-deno@v2
42+
with:
43+
deno-version: v2.x
44+
45+
- run: uv tool install pre-commit
46+
47+
- run: make install
48+
3249
- name: Run Claude PR Action
3350
uses: anthropics/claude-code-action@beta
3451
with:
3552
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
3653
timeout_minutes: "60"
54+
additional_permissions: |
55+
actions: read
56+
allowed_tools: |
57+
Bash(make:*)
58+
Bash(uv:*)

0 commit comments

Comments
 (0)