Repository navigation
fix(ci): Build JSON dispatch payload with jq in nightly-trigger workflow - #3746
Merged
kthoms merged 1 commit intoSep 27, 2026
Merged
Conversation
The MATRIX_BRANCH env var refactor (operaton#3538) left the ref field inside a single-quoted curl -d payload, so bash never expanded it — the literal string "${MATRIX_BRANCH}" was sent as the ref, causing every dispatch call to fail with a non-204 response since 2026-08-26. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The workflow payload construction fix is fully reviewed with no unresolved blocking issues.
Review effort: Lite
Findings: None
What changed in this PR
Fixes nightly workflow dispatch failures by safely constructing JSON payloads with jq and correctly interpolating MATRIX_BRANCH.
Changes:
- Replaced hand-quoted payloads in both dispatch steps.
- Added JSON-safe branch interpolation with
jq --arg.
| File | Description |
|---|---|
.github/workflows/nightly-trigger.yml |
Builds valid payloads for integration-build and build dispatches. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Summary
MATRIX_BRANCHenv var refactor in chore: Enable static pipeline analysis with zizmor #3538 left thereffield inside a single-quotedcurl -d '{...}'payload in both dispatch steps ofnightly-trigger.yml. Bash never expands variables inside single quotes, so the literal string${MATRIX_BRANCH}was POSTed as theref, GitHub rejected it, and every nightly build/integration-build dispatch has failed since 2026-08-26 (compare run 32805843151 vs 32927399014).jq -n --arg ref "$MATRIX_BRANCH" '{...}'in both the integration-build and build dispatch steps, so the branch name is safely interpolated and JSON-escaped.Test plan
yamllint/jqsanity-checked the payload locally (MATRIX_BRANCH=... jq -n --arg ref "$MATRIX_BRANCH" '{...}'produces the expected JSON with the actual branch name).nightly-trigger.ymlmanually (workflow_dispatch) after merge and confirm both dispatch steps report204/ trigger the target workflows.Co-Authored-By: Claude Sonnet 5 [email protected]