From f28420b9953c4a93f7c9f2d7caf7cba8ad09fd91 Mon Sep 17 00:00:00 2001 From: jplachance-workleap Date: Tue, 1 Dec 2026 16:18:18 -0500 Subject: [PATCH] LEAPSEC-584: ci: review agent uses the job's token Pass github_token and drop id-token: write so the review agent keeps the job's read-only contents permission instead of the Claude App token. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/claude-code-review.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 3a388564a..b1be48e88 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -17,7 +17,6 @@ jobs: contents: read pull-requests: write issues: write - id-token: write steps: - name: Checkout repository @@ -53,6 +52,9 @@ jobs: uses: anthropics/claude-code-action@acfe7992852970efb4fee683d63d628e3e52df67 # v1.0.286 with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} + # The job's own token: the agent keeps this job's read-only contents permission instead of + # the Claude App token, which can push code. + github_token: ${{ github.token }} plugin_marketplaces: ${{ runner.temp }}/claude-plugins plugins: "code-review@wl-hopper-ci" prompt: |