From 7a263db742b5b30bd52174b77dff5838c7aadd30 Mon Sep 17 00:00:00 2001 From: sabith Date: Wed, 11 Nov 2026 18:57:04 -0800 Subject: [PATCH] fix: set a fallback git identity for the release tag The Release workflow failed on the tagging step: actions/checkout provides no git committer identity, so "git tag -a" exits 128 ("empty ident name not allowed"). Local cuts worked only because a user identity was configured. Only fall back to github-actions[bot] when no identity is configured, so manual local runs keep the user's own identity. --- .github/scripts/cut-release.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/scripts/cut-release.sh b/.github/scripts/cut-release.sh index 4a02754..c8bfe62 100755 --- a/.github/scripts/cut-release.sh +++ b/.github/scripts/cut-release.sh @@ -91,6 +91,15 @@ if [ "$dry_run" = true ]; then fi : "${GH_TOKEN:?GH_TOKEN is required to push tags and create the release}" + +# Annotated tags need a committer identity; GitHub runners have none. Fall +# back to github-actions[bot] only when the environment provides none, so a +# local manual run still tags with the user's own identity. +if [ -z "$(git config user.email || true)" ]; then + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" +fi + git tag -a "$version" -m "Release $version" "$sha" git push origin "refs/tags/$version"