From aacb4738b858dcc940f88bdb882f9c23f5722ee6 Mon Sep 17 00:00:00 2001 From: AnnatarHe Date: Tue, 6 Jan 2026 23:26:00 +0800 Subject: [PATCH 1/2] fix(ci): add GITHUB_TOKEN to checkout action for self-hosted runner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The checkout action was failing on self-hosted runner with "could not read Username for 'https://github.com': terminal prompts disabled". Adding explicit token parameter resolves authentication issues. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .github/workflows/release.yml | 2 ++ .github/workflows/testing.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1cdec1..06beb1c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,8 @@ jobs: - name: Checkout if: ${{ steps.release.outputs.release_created }} uses: actions/checkout@v6 + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Setup Java if: ${{ steps.release.outputs.release_created }} diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 9a823c9..edec720 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -14,6 +14,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v6 + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Setup Java uses: actions/setup-java@v5 From a0e7da7b582cb18860fceab23cf3f564ee19161f Mon Sep 17 00:00:00 2001 From: AnnatarHe Date: Tue, 6 Jan 2026 23:32:54 +0800 Subject: [PATCH 2/2] fix(ci): add persist-credentials false to checkout action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prevents stale git credentials from interfering with checkout on self-hosted runner. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .github/workflows/release.yml | 1 + .github/workflows/testing.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 06beb1c..6dd10d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,7 @@ jobs: uses: actions/checkout@v6 with: token: ${{ secrets.GITHUB_TOKEN }} + persist-credentials: false - name: Setup Java if: ${{ steps.release.outputs.release_created }} diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index edec720..ca86167 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -16,6 +16,7 @@ jobs: uses: actions/checkout@v6 with: token: ${{ secrets.GITHUB_TOKEN }} + persist-credentials: false - name: Setup Java uses: actions/setup-java@v5