Skip to content

Commit 53b7329

Browse files
authored
🔶 [gha] Add Claude Code GitHub Workflow (#2)
* "Update Claude PR Assistant workflow" * "Update Claude Code Review workflow" * restore better global permissions
1 parent ca6e9dc commit 53b7329

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
# github.event.pull_request.user.login == 'external-contributor' ||
2121
# github.event.pull_request.user.login == 'new-developer' ||
2222
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
23-
23+
2424
runs-on: ubuntu-latest
2525
permissions:
2626
contents: read
2727
pull-requests: read
2828
issues: read
2929
id-token: write
30-
30+
3131
steps:
3232
- name: Checkout repository
3333
uses: actions/checkout@v4
@@ -49,12 +49,12 @@ jobs:
4949
- Performance considerations
5050
- Security concerns
5151
- Test coverage
52-
52+
5353
Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
5454
5555
Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR.
56-
56+
5757
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
58-
# or https://docs.claude.com/en/docs/claude-code/sdk#command-line for available options
58+
# or https://code.claude.com/docs/en/cli-reference for available options
5959
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'
6060

.github/workflows/claude.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: anthropics/claude-code-action@v1
3939
with:
4040
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
41-
41+
4242
# This is an optional setting that allows Claude to read CI results on PRs
4343
additional_permissions: |
4444
actions: read
@@ -48,6 +48,6 @@ jobs:
4848

4949
# Optional: Add claude_args to customize behavior and configuration
5050
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
51-
# or https://docs.claude.com/en/docs/claude-code/sdk#command-line for available options
52-
# claude_args: '--model claude-opus-4-1-20250805 --allowed-tools Bash(gh pr:*)'
51+
# or https://code.claude.com/docs/en/cli-reference for available options
52+
# claude_args: '--allowed-tools Bash(gh pr:*)'
5353

0 commit comments

Comments
 (0)