Repository navigation
fix(actions): runtime-generated GITHUB_OUTPUT heredoc delimiters for pm-dispatch prompts (#2712) - #2889
Conversation
…pm-dispatch prompts (#2712) All three dispatch sites wrote multi-line outputs under fixed heredoc delimiters (PM_DISPATCH_TASK_PROMPT_EOF, PM_DISPATCH_PROMPT_EOF, MAIN_BROKEN_BODY_EOF/PROMPT_EOF); a prompt containing the delimiter line truncated the output and corrupted the rest of the step. Each site now generates its delimiter at runtime with an openssl rand -hex 8 suffix. Round-trip verified with a runner-style GITHUB_OUTPUT parser simulation: a prompt containing all four old fixed delimiter lines passes through intact at every site. Output names, ordering, and consumers unchanged.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 22 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Fixes #2712.
Problem
Three fleet dispatch sites wrote multi-line values to
$GITHUB_OUTPUTunder fixed heredoc delimiters. A prompt (or body) containing the delimiter as its own line truncates the value at that line and turns the remainder into runner errors or silently consumed outputs.Fix
Each site now generates its delimiter at runtime (
openssl rand -hex 8suffix on the existing readable prefix), so content cannot practically collide with it:.github/actions/pm-dispatch-task/action.yml—promptoutput in the resolve step.github/workflows/flake-inputs-update.yml—promptoutput in the dispatch-prompt step.github/workflows/main-broken.yml—bodyandpromptoutputs in the identify step (independent delimiters)Output names, ordering, and downstream consumers are unchanged.
Verification
<<..._EOF"writer remains: the old strings survive only as prefixes of the runtime-generated delimiter variables.$GITHUB_OUTPUTparser (name<<delim … delim): a hostile prompt containing all four old fixed delimiter lines round-trips byte-intact through every site's patched write pattern (prompt, prompt-via-file, body, prompt — 4/4 OK).Queue task 4097 (repo-health-code-pilot), routed from triage task 4082.
Need help on this PR? Tag
@codesmith-botwith what you need.