From e3f63f1539ae53cb4784bfbbdbee31fba8c9d58f Mon Sep 17 00:00:00 2001 From: aojunhao123 <1844749591@qq.com> Date: Sun, 12 Jul 2026 16:58:00 +0800 Subject: [PATCH 1/2] ci: drop unsupported github-token input from react-doctor The millionco/react-doctor action declares no github-token input; its internal github-script steps use github.token automatically. Passing github-token is an unknown input, which the GitHub Actions language server flags as an error. --- .github/workflows/react-doctor.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/react-doctor.yml b/.github/workflows/react-doctor.yml index 56430b6e..00f3a570 100644 --- a/.github/workflows/react-doctor.yml +++ b/.github/workflows/react-doctor.yml @@ -20,5 +20,3 @@ jobs: with: persist-credentials: false - uses: millionco/react-doctor@0b4f4f4bd248a154e64eb508a48347f71154b3f3 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} From 599848eb39880ed7a37871ea3ac6649a87e85300 Mon Sep 17 00:00:00 2001 From: aojunhao123 <1844749591@qq.com> Date: Sun, 12 Jul 2026 17:44:40 +0800 Subject: [PATCH 2/2] ci: bump react-doctor action to v2.2.7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The action was pinned to v2.2.2 (0b4f4f4) but installs the CLI at `version: latest`. react-doctor 0.7.5/0.7.6 bumped the JSON report schemaVersion to 3; v2.2.2's ensure-json-report.mjs only accepts {1,2}, so it rejected every report, overwrote it with a synthetic error, and exited 1 — failing the job on PRs regardless of scan results. v2.2.7 accepts schema 3. --- .github/workflows/react-doctor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/react-doctor.yml b/.github/workflows/react-doctor.yml index 00f3a570..91e74c33 100644 --- a/.github/workflows/react-doctor.yml +++ b/.github/workflows/react-doctor.yml @@ -19,4 +19,4 @@ jobs: - uses: actions/checkout@v7 with: persist-credentials: false - - uses: millionco/react-doctor@0b4f4f4bd248a154e64eb508a48347f71154b3f3 + - uses: millionco/react-doctor@964622bf15fa5f8eef7e05196407aa08dc779087 # v2.2.7