From 3822203ec4c53c63149c17a26944d00f704d3240 Mon Sep 17 00:00:00 2001 From: Ashwin Bhat Date: Sun, 15 Feb 2026 14:51:17 -0800 Subject: [PATCH] fix: grant write permissions and use @main in claude workflow Give the workflow contents/pull-requests/issues write permissions so the OIDC app token can push. Also point to @main instead of @v1. --- .github/workflows/claude.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 3abb46f69..66ec3acdb 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -19,9 +19,9 @@ jobs: (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) runs-on: ubuntu-latest permissions: - contents: read - pull-requests: read - issues: read + contents: write + pull-requests: write + issues: write id-token: write steps: - name: Checkout repository @@ -31,7 +31,7 @@ jobs: - name: Run Claude Code id: claude - uses: anthropics/claude-code-action@v1 + uses: anthropics/claude-code-action@main with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} claude_args: |