Skip to content

Commit ecf32a4

Browse files
committed
"Update Claude PR Assistant workflow"
1 parent 4b062fe commit ecf32a4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/claude.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ jobs:
1919
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
2020
runs-on: ubuntu-latest
2121
permissions:
22-
contents: write # Allow creating branches/commits
23-
pull-requests: write # Allow pushing to PR branches
24-
issues: write # Allow updating issue comments
22+
contents: read
23+
pull-requests: read
24+
issues: read
2525
id-token: write
26-
actions: read # Required for Claude to read CI results on PRs
26+
actions: read # Required for Claude to read CI results on PRs
2727
steps:
2828
- name: Checkout repository
2929
uses: actions/checkout@v4
3030
with:
31-
fetch-depth: 0 # Full history for git operations
31+
fetch-depth: 1
3232

3333
- name: Run Claude Code
3434
id: claude
@@ -45,6 +45,6 @@ jobs:
4545

4646
# Optional: Add claude_args to customize behavior and configuration
4747
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
48-
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
48+
# or https://code.claude.com/docs/en/cli-reference for available options
4949
# claude_args: '--allowed-tools Bash(gh pr:*)'
5050

0 commit comments

Comments
 (0)