Skip to content

Commit fd50545

Browse files
committed
fix(ci): Add OIDC permission and unrestrict Bash for CI failure analysis
- Add `id-token: write` permission required by claude-code-action for OIDC authentication (matches working claude.yml configuration). - Change `Bash(gh:*)` to `Bash` so Claude can use grep/head/tail to filter large CI logs during failure analysis. Safe because the workflow runs in an ephemeral container with only scoped github.token.
1 parent c7d5b01 commit fd50545

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci-failure-comment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ permissions:
4343
pull-requests: write
4444
issues: write
4545
actions: read
46+
id-token: write
4647

4748
jobs:
4849
analyze-and-comment:
@@ -161,7 +162,7 @@ jobs:
161162
uses: izaitsevfb/claude-code-action@ececd56fb999d06b4dd2477437bc408938295d76 # forked-pr-fix
162163
with:
163164
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
164-
claude_args: --model claude-sonnet-4-6 --allowedTools "Bash(gh:*)" Read Grep Glob
165+
claude_args: --model claude-sonnet-4-6 --allowedTools Bash Read Grep Glob
165166
prompt: ${{ steps.prompt.outputs.value }}
166167
env:
167168
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)