Skip to content

Commit bdd8d9b

Browse files
authored
Merge pull request #112 from AdjectiveAllison/ci_claude2
remove workflow (not real)
2 parents 08e2d1e + 2513060 commit bdd8d9b

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/claude-code-review.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Claude Code Review
22

33
on:
4-
pull_request:
4+
pull_request_target: # Use pull_request_target instead of pull_request
55
types: [opened, synchronize] # Runs on new PRs and updates
66

77
jobs:
@@ -14,25 +14,26 @@ jobs:
1414
discussions: write
1515
id-token: write
1616
statuses: write
17-
workflow: write
1817
actions: write
1918
steps:
2019
# Check out the code to allow git diff operations
2120
- name: Checkout code
2221
uses: actions/checkout@v4
2322
with:
2423
fetch-depth: 0 # Fetch full history for accurate diffs
24+
# Important: For pull_request_target, ref needs to be explicitly set to PR head
25+
ref: ${{ github.event.pull_request.head.sha }}
2526

2627
- name: Run Code Review with Claude
2728
id: code-review
2829
uses: anthropics/claude-code-action@beta
2930
with:
30-
# Your GitHub token for API operations
31-
github_token: ${{ secrets.GITHUB_TOKEN }}
32-
3331
# Define the review focus areas
3432
direct_prompt: "Review the PR changes. Focus on code quality, potential bugs, and performance issues. Suggest improvements where appropriate. Pay special attention to Kubernetes operator patterns and Go best practices according to the CLAUDE.md file."
3533

34+
# Your GitHub token for API operations
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
3637
# Limited tools for safer review operations
3738
allowed_tools: |-
3839
# Git inspection commands (read-only)

.github/workflows/claude-comment-response.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
discussions: write
1616
id-token: write
1717
statuses: write
18-
workflow: write
1918
actions: write
2019
steps:
2120
- name: Checkout code

.github/workflows/claude-pr-creation.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
discussions: write
2121
id-token: write
2222
statuses: write
23-
workflow: write
2423
actions: write
2524
steps:
2625
- name: Checkout code

0 commit comments

Comments
 (0)