From 9411369eca8dd706dd1a7c0153b30541d48569e2 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Oct 2026 02:27:21 +0000 Subject: [PATCH] fix(bump-consumers): name the missing secret instead of gh's login error A dispatch without MAROLA_BUMP_TOKEN reached gh with an empty GH_TOKEN, which fails with "You are not logged into any GitHub hosts". Fail first, naming the secret. Tested: GH_TOKEN= bump-consumers.sh 0.6.0 exits 1 with the new message; --self-test; shellcheck; tests/self-tests.sh Cost: n/a (no measured figure in this cloud session) Co-Authored-By: Claude --- scripts/bump-consumers.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/bump-consumers.sh b/scripts/bump-consumers.sh index 915e057..b7cb6d1 100755 --- a/scripts/bump-consumers.sh +++ b/scripts/bump-consumers.sh @@ -74,6 +74,7 @@ if [ -n "$one" ]; then exit fi +[ -n "${GH_TOKEN:-}" ] || { echo "bump-consumers: GH_TOKEN is empty; set the MAROLA_BUMP_TOKEN secret on marola-devkit (docs/3-development.md, Releases)" >&2; exit 1; } # Each repo in its own process: set -e does not apply inside a function called from `||`. gh auth setup-git failed=()