Skip to content

Commit 4b121b8

Browse files
sohei-tclaude
andcommitted
fix: add id-token:write and github_token for Claude Code Action
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 706af34 commit 4b121b8

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/claude.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
claude-review:
1313
if: |
1414
(github.event_name == 'pull_request') ||
15-
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
16-
(github.event_name == 'issues' && contains(github.event.issue.labels.*.name, 'claude'))
15+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude'))
1716
runs-on: ubuntu-latest
1817
permissions:
1918
pull-requests: write
2019
contents: write
2120
issues: write
21+
id-token: write
2222
steps:
2323
- uses: actions/checkout@v4
2424
with:
@@ -27,6 +27,7 @@ jobs:
2727
- uses: anthropics/claude-code-action@v1
2828
with:
2929
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
3031

3132
claude-issue-to-pr:
3233
if: |
@@ -37,6 +38,7 @@ jobs:
3738
pull-requests: write
3839
contents: write
3940
issues: write
41+
id-token: write
4042
steps:
4143
- uses: actions/checkout@v4
4244
with:
@@ -45,8 +47,5 @@ jobs:
4547
- uses: anthropics/claude-code-action@v1
4648
with:
4749
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
48-
use_bedrock: false
49-
direct_prompt: |
50-
Read issue #${{ github.event.issue.number }} and implement the requested changes.
51-
Create a well-structured commit with clear message.
50+
github_token: ${{ secrets.GITHUB_TOKEN }}
5251

0 commit comments

Comments
 (0)