From 5eca4a00dbc4a9eed93666e2e475614e6b77edf9 Mon Sep 17 00:00:00 2001 From: jth-nw Date: Mon, 23 Mar 2026 13:59:52 -0500 Subject: [PATCH] fix: use VALE_TOKEN for content-fix jobs to trigger PR workflows PRs created with GITHUB_TOKEN don't trigger other workflows (GitHub prevents infinite loops). Use VALE_TOKEN (PAT) instead so that PRs created by content-fix trigger build-and-deploy, vale-linter, and doc-pr workflows. Same pattern as vale-autofix.yml. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/claude-issue-labeler.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/claude-issue-labeler.yml b/.github/workflows/claude-issue-labeler.yml index 4faa6ff334..ed0b81b7ff 100644 --- a/.github/workflows/claude-issue-labeler.yml +++ b/.github/workflows/claude-issue-labeler.yml @@ -126,16 +126,24 @@ jobs: if: steps.check-issue.outputs.issue_state == 'OPEN' && steps.check-issue.outputs.has_content_fix == 'true' uses: actions/checkout@v4 with: + token: ${{ secrets.VALE_TOKEN }} fetch-depth: 0 + - name: Configure git identity + if: steps.check-issue.outputs.issue_state == 'OPEN' && steps.check-issue.outputs.has_content_fix == 'true' + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + - name: Run content-fix skill if: steps.check-issue.outputs.issue_state == 'OPEN' && steps.check-issue.outputs.has_content_fix == 'true' uses: anthropics/claude-code-action@v1 env: REPO: ${{ github.repository }} + GH_TOKEN: ${{ secrets.VALE_TOKEN }} with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.VALE_TOKEN }} show_full_output: true prompt: | /content-fix ${{ github.event.issue.number }} @@ -176,17 +184,25 @@ jobs: if: steps.check-issue.outputs.issue_state == 'OPEN' && steps.check-issue.outputs.has_content_fix == 'true' uses: actions/checkout@v4 with: + token: ${{ secrets.VALE_TOKEN }} fetch-depth: 0 + - name: Configure git identity + if: steps.check-issue.outputs.issue_state == 'OPEN' && steps.check-issue.outputs.has_content_fix == 'true' + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + - name: Run content-fix skill if: steps.check-issue.outputs.issue_state == 'OPEN' && steps.check-issue.outputs.has_content_fix == 'true' uses: anthropics/claude-code-action@v1 env: REPO: ${{ github.repository }} COMMENT_BODY: ${{ github.event.comment.body }} + GH_TOKEN: ${{ secrets.VALE_TOKEN }} with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.VALE_TOKEN }} show_full_output: true prompt: | /content-fix ${{ github.event.issue.number }}