From e5ac52931e950354240df513808394950fa0479f Mon Sep 17 00:00:00 2001 From: hikariming Date: Tue, 24 Nov 2026 20:12:44 -0800 Subject: [PATCH] fix(deploy): pass the job token to the Feed cutover smoke The service-contract smoke reads the service account's public GitHub identity from api.github.com. GitHub answers 403 to anonymous REST calls from hosted-runner addresses, so the cutover of ghfind-server v1.0.17 failed twice at that step (run 45523214889) and left the Feed paused. Pass github.token as GITHUB_TOKEN to that step only. The read is public, so it needs none of the token's permissions; the job's permissions are unchanged. ghfind-server sends it from v1.0.18 on. Co-Authored-By: Claude Fable 5.2 --- .github/workflows/deploy-cf-production.yml | 5 +++++ docs/runbook.md | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/deploy-cf-production.yml b/.github/workflows/deploy-cf-production.yml index 6c527a1d..1d4f75fa 100644 --- a/.github/workflows/deploy-cf-production.yml +++ b/.github/workflows/deploy-cf-production.yml @@ -329,6 +329,11 @@ jobs: node scripts/feed-production-assessment-checkpoint.mjs "$RELEASE_SHA" ops/feed-production-assessment-checkpoint.json ops/feed-production-assessment-carryover.json "$RUNNER_TEMP/feed-production-evidence/assessment-result.json" - name: Verify bounded authenticated Go service contracts before opening the gateway if: steps.current.outputs.current == 'true' + env: + # The smoke reads the service account's public GitHub identity. GitHub + # answers 403 to anonymous REST calls from hosted-runner addresses, so + # authenticate with the job token; the read needs none of its permissions. + GITHUB_TOKEN: ${{ github.token }} run: | node scripts/feed-production-smoke.mjs --mode all --runtime-mode baseline --release-sha "$RELEASE_SHA" --image "${{ steps.image.outputs.reference }}" --writer-epoch 1 --profile cf_d1_r2 --output "$RUNNER_TEMP/feed-production-evidence/service-smoke.json" --execute - name: Record gateway admission intent before starting the cutover diff --git a/docs/runbook.md b/docs/runbook.md index 49d35fb5..b1a8df63 100644 --- a/docs/runbook.md +++ b/docs/runbook.md @@ -89,6 +89,14 @@ PR, `.github/compose/check-hub-contract.mjs` fails if a `pnpm` script or `script file that a hub workflow calls is missing. It also runs ci.yml's Application-checks `node:test` suites, which include the production migration approval guard. +The same order applies when a server script needs a new input from a hub workflow. +(2026-11-24: the Feed cutover smoke read a public GitHub identity anonymously, which +GitHub rejects with 403 from hosted runners, so the server v1.0.17 cutover failed and +the Feed stayed paused. The hub now passes `GITHUB_TOKEN` to that step and the server +uses it.) `Deploy production (Cloudflare)` and `Deploy apps (production)` start by +`workflow_run`, so GitHub runs their workflow files from `main`, not from the `deploy` +commit: a change to those two files takes effect once it is merged. + ### compose `Compose release` (Actions → Compose release → Run workflow, or `gh workflow run`) has