Repository navigation
Conversation
This workflow dispatches to graze-social/turbo-deploy on every merge, using DISPATCH_GH_TOKEN. That token expired around 2026-04, and a dead credential here surfaces as a bare "401 Bad credentials" from the dispatch action -- after the git tag and GitHub release have already been created, so the release exists but nothing downstream ever ran. Preflight the token before dispatching, so an expired secret is reported by name with a pointer to the rotation runbook. Unlike the algo-cluster-bound build workflows, there is no deploy-target label here: every merge is meant to dispatch, so the check is unconditional. Runbook: https://github.com/graze-social/network/blob/main/.github/DEPLOY_DISPATCH.md Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Part of an org-wide sweep of
DISPATCH_GH_TOKENusage; see graze-social/network#69 for the full write-up.What's wrong here
This workflow dispatches to
graze-social/turbo-deployon every merge tomain, usingDISPATCH_GH_TOKEN. That token expired around 2026-04 —network,algo-cluster,algo-smasherandturbostream-sqsall fail on every merge with401 Bad credentials.This repo's failure mode is worse than a red X, and different from theirs. The step order is:
create_tag— computes the next versioncreate_release—gh release create(uses${{ github.token }}, so it works)repo_dispatch— needsDISPATCH_GH_TOKEN, so it failsSo a dead token leaves you with a real git tag and a real GitHub release that nothing downstream ever built. The release looks published;
turbo-deploynever heard about it.The fix
Preflight the credential before dispatching, so an expired secret is reported by name with a pointer to the runbook, rather than surfacing as a bare
401 Bad credentialsfrom inside the dispatch action.Unlike the
algo-cluster-bound build workflows, there's nodeploy-target:label here — every merge is meant to dispatch — so there's no "nothing to deploy" case to distinguish, and the check is unconditional.create_releasealready correctly uses the built-in token, so nothing else here needed changing. (Its counterpart inaipdid not — see graze-social/aip#63.)Note on token scope
This repo dispatches to
turbo-deploy, notalgo-cluster, andturbo-deployalso checks this repo out cross-repo. SoDISPATCH_GH_TOKENcannot be scoped toalgo-clusteralone. The full scope table is in the runbook.Verification
Extracted the preflight step body from the YAML and ran all three branches against the live GitHub API — empty token, a bogus token returning a real
401, and a valid token returning200— confirming the intended message and exit code (1/1/0) each time. Workflow YAML parses.Only triggers on
pull_request: closed, so it does not run on this PR.🤖 Generated with Claude Code