Repository navigation
fix(ci): release notes heredoc executed installer on runner — use template file - #1041
Merged
Merged
Conversation
…mplate file The unquoted heredoc << RELEASEEOF underwent shell expansion: markdown backticks became command substitutions and executed on the runner. v0.14.3 release: installer curl|sh ran, uteke-serve --port 8767 started and blocked the job for 48 minutes (2 runs, deterministic). Move the static tail (downloads table + quick start) to scripts/release-notes-template.md and substitute __VER__ via sed. Zero shell expansion over markdown content. Validated locally: generate completes instantly, output byte-correct. Fixes the release pipeline for all future releases.
🔍 Cora AI Code ReviewReview powered by cora-code · BYOK · MIT |
What
Unquoted heredoc
<< RELEASEEOFin the release workflow's Generate release notes step underwent shell expansion. Markdown backticks in the downloads table and the ```bash fence turned into command substitutions — executed on the CI runner.Why
v0.14.3 release workflow hung for 48 minutes × 2 runs (deterministic). Log evidence (attempt 1):
line 22: uteke: command not found×12 — table cells executed as commandscurl -fsSL …/install.sh | sh— installer ran on the runneruteke-serve --port 8767— blocking server started, never exited → hangTerminate orphan process: pid (2130) (uteke-serve)Changes
scripts/release-notes-template.mdwith__VER__placeholdersed "s/__VER__/…/g"Testing
python3 -c yaml.safe_load: workflow YAML parses