Skip to content

Commit c03ed0a

Browse files
committed
chore(gui): pin react-doctor to 0.9.1
Keep local scripts, CI engine pin, and contract tests on the same advisory CLI version.
1 parent b2832fb commit c03ed0a

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎.github/workflows/react-doctor.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
directory: gui
5151
# Pin the npm engine — the action wrapper would otherwise fetch
5252
# react-doctor@latest, silently skewing CI from the local pinned runs.
53-
version: "0.7.8"
53+
version: "0.9.1"
5454
# Advisory contract: report to the step log only; never gate, never write.
5555
blocking: none
5656
comment: false

‎gui/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ bun run setup:hooks # pre-push runs doctor when gui/ changed
4949
| Tool | Role |
5050
|------|------|
5151
| **ESLint** (`bun run lint`) | Hard gate in CI and expected before merge |
52-
| **React Doctor** (`bun run doctor`) | Advisory React health check pinned to react-doctor 0.7.8. Pre-push runs it only if `gui/` changed and never blocks the push. The CI workflow reports to the step log only |
52+
| **React Doctor** (`bun run doctor`) | Advisory React health check pinned to react-doctor 0.9.1. Pre-push runs it only if `gui/` changed and never blocks the push. The CI workflow reports to the step log only |
5353

5454
Fix ESLint errors first. Use `doctor` / `doctor:full` for deeper React triage.

‎gui/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"lint": "eslint .",
1010
"test": "bun test tests",
1111
"lint:i18n": "eslint src/pages src/components src/App.tsx src/ui.tsx",
12-
"doctor": "npx --yes react-doctor@0.7.8 --verbose --scope changed --base origin/main --no-telemetry",
13-
"doctor:full": "npx --yes react-doctor@0.7.8 --verbose --scope full --no-telemetry",
12+
"doctor": "npx --yes react-doctor@0.9.1 --verbose --scope changed --base origin/main --no-telemetry",
13+
"doctor:full": "npx --yes react-doctor@0.9.1 --verbose --scope full --no-telemetry",
1414
"preview": "vite preview"
1515
},
1616
"dependencies": {

‎tests/ci-workflows.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ describe("GitHub Actions hardening", () => {
228228
expect(workflow).not.toMatch(/uses:\s+\S+@(?:v\d+|main|master)\b/);
229229

230230
// Engine pin: the action wrapper would fetch react-doctor@latest without it.
231-
expect(workflow).toContain('version: "0.7.8"');
231+
expect(workflow).toContain('version: "0.9.1"');
232232

233-
// Action pin must accept CLI JSON schemaVersion 3 (baseline reports from 0.7.8).
233+
// Action pin must accept CLI JSON schemaVersion 3 (baseline reports from 0.9.1).
234234
// v2.1.0's ensure-json-report only knew schemas 1–2 and failed every PR scan.
235235
// Advisory + least privilege: read-only token, all write-scoped outputs off.
236236
// pull-requests: read is required so the action can list PR files for
@@ -249,7 +249,7 @@ describe("GitHub Actions hardening", () => {
249249
const guiPkg = await readText("gui/package.json");
250250
const rootPkg = await readText("package.json");
251251

252-
expect(guiPkg).toContain("react-doctor@0.7.8");
252+
expect(guiPkg).toContain("react-doctor@0.9.1");
253253
expect(guiPkg).not.toContain("react-doctor@latest");
254254
expect(rootPkg).not.toContain("react-doctor@latest");
255255
expect(rootPkg).toContain('"doctor:gui:if-changed": "bun scripts/doctor-gui-if-changed.ts"');

0 commit comments

Comments
 (0)