Repository navigation
fix(deploy): pass the job token to the Feed cutover smoke - #673
Merged
Merged
Conversation
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 <noreply@anthropic.com>
hikariming
requested review from
AsperforMias and
KurosawaGeeker
as code owners
November 25, 2026 04:13
Collaborator
Author
|
Server half: https://github.com/FindAny/ghfind-server/pull/36 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Incident
The production cutover of ghfind-server v1.0.17 (deploy commit 39b84f6) failed twice in
Deploy production (Cloudflare)run 45523214889, at Verify bounded authenticated Go service contracts before opening the gateway. Production is on Web v1.0.17 with the Feed gateway paused and the Feed queue consumers detached; the Feed stays down until a cutover passes.That step runs
scripts/feed-production-smoke.mjs --mode all, which reads the service account's public identity fromhttps://api.github.com/user/<id>without credentials. GitHub answers 403 to anonymous REST calls from hosted-runner addresses on every attempt; the same request returns 200 from an ordinary machine.Change
deploy-cf-production.yml: passGITHUB_TOKEN: ${{ github.token }}to that one step. The read is public, so it needs none of the token's permissions, and the workflow and jobpermissionsare unchanged. The workflow mints no other token in this job; the release-bot key is only used by the assemble action.docs/runbook.md: record the incident under Release order, and note that the two deploy workflows start byworkflow_run, so GitHub runs their files frommain.The server half is the ghfind-server PR "fix(feed): authenticate the smoke's GitHub identity read when GITHUB_TOKEN is set" (linked in a comment below). It sends the token from v1.0.18 on. This change alone does not fix the cutover: v1.0.17 ignores the variable.
No other step on the cutover path calls
api.github.comanonymously: the remaining calls in this job go throughghorGH_TOKEN, andpnpm smoke:deploymentonly calls the ghfind origin.Verification
scripts/check-cf-release-workflow.mts(from ghfind-server) passes against this workflow.Release order
v1.0.6, then serverv1.0.18right after it. The hub release composes with server v1.0.17 first; if that composition reaches the cutover it fails at the same step again and stays paused, and the v1.0.18 composition is the one that should pass.🤖 Generated with Claude Code