Skip to content

Commit 19929dd

Browse files
Merge pull request #1238 from MervinPraison/fix/gha-claude-oidc-token
fix(gha): Add id-token write permission and switch to GH_TOKEN for Claude actions
2 parents a0e4a76 + 36c2e76 commit 19929dd

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/claude-issue-triage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
uses: ./.github/actions/claude-issue-triage-action
2121
with:
2222
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
23-
github_token: ${{ secrets.PAT_TOKEN }}
23+
github_token: ${{ secrets.GH_TOKEN }}

.github/workflows/claude.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
pull-requests: write
3030
issues: write
3131
actions: read
32+
id-token: write
3233
steps:
3334
- name: Checkout repository
3435
uses: actions/checkout@v4
@@ -38,7 +39,7 @@ jobs:
3839
- uses: anthropics/claude-code-action@beta
3940
with:
4041
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
41-
github_token: ${{ secrets.PAT_TOKEN }}
42+
github_token: ${{ secrets.GH_TOKEN }}
4243
trigger_phrase: "@claude"
4344
label_trigger: "claude"
4445
direct_prompt: |

0 commit comments

Comments
 (0)