From 7e7526594b0da6c4adb4b5a1b33f463e13f3171d Mon Sep 17 00:00:00 2001 From: jth-nw Date: Wed, 1 Apr 2026 09:40:19 -0500 Subject: [PATCH] fix: restore VALE_TOKEN credentials before push MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit claude-code-action overrides git credentials with GITHUB_TOKEN, so the consolidated push step was silently using GITHUB_TOKEN — which doesn't trigger downstream workflows. Re-set the remote URL with VALE_TOKEN before pushing so build-and-deploy triggers on the fixed code. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/vale-autofix.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/vale-autofix.yml b/.github/workflows/vale-autofix.yml index e34b57b2b7..f2735e8beb 100644 --- a/.github/workflows/vale-autofix.yml +++ b/.github/workflows/vale-autofix.yml @@ -242,7 +242,12 @@ jobs: - name: Push all fixes if: steps.bot-check.outputs.skip != 'true' && steps.changed-files.outputs.count > 0 + env: + VALE_TOKEN: ${{ secrets.VALE_TOKEN }} run: | + # Re-configure git credentials with VALE_TOKEN (claude-code-action + # overrides credentials with GITHUB_TOKEN, which doesn't trigger workflows) + git remote set-url origin "https://x-access-token:${VALE_TOKEN}@github.com/${{ github.repository }}.git" if [ "$(git rev-list @{u}..HEAD --count 2>/dev/null)" -gt 0 ]; then echo "Pushing $(git rev-list @{u}..HEAD --count) commit(s)..." git push