Fix SC2129: group consecutive redirects in shell scripts#14594
Fix SC2129: group consecutive redirects in shell scripts#14594
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
🧪 Smoke Project is now testing project operations... |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
✅ Changeset Generator completed successfully! |
|
📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing... |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
Agent Container Tool Check ❌
Result: 10/12 tools available Critical Issue DetectedProblem: Java and .NET binaries are executing as bash instead of their actual programs. Evidence:
Shell Environment:
Impact: Agent container environment has a critical shell/binary execution issue that prevents Java and .NET tools from functioning correctly. Recommendation: Investigate container image setup and shell configuration. This appears to be a binfmt or shell wrapper issue affecting binary execution.
|
|
✅ Smoke Project completed successfully. All project operations validated. |
|
Merged PR titles:
|
Smoke Test Results: ✅ PASS
Run: §21813947500
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
There was a problem hiding this comment.
Pull request overview
This PR reduces ShellCheck SC2129 warnings by grouping consecutive redirects to the same GitHub Actions output file in MCP-related setup shell scripts and aligns a related test fixture with the same redirect grouping pattern.
Changes:
- Grouped consecutive
>> $GITHUB_OUTPUTwrites into{ ... } >> "$GITHUB_OUTPUT"blocks in MCP setup shell scripts. - Updated the MCP server core test fixture shell script to use the grouped redirect pattern.
- Added a changeset documenting the patch-level change.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| actions/setup/sh/start_mcp_gateway.sh | Groups gateway outputs into a single redirected block (SC2129 fix). |
| actions/setup/sh/start_safe_inputs_server.sh | Groups port/api_key outputs into a single redirected block (SC2129 fix). |
| actions/setup/sh/start_safe_outputs_server.sh | Groups port/api_key outputs into a single redirected block (SC2129 fix). |
| actions/setup/js/mcp_server_core.test.cjs | Updates embedded shell script fixture to use grouped redirects. |
| .changeset/patch-group-github-output-redirects.md | Records the patch changeset for the redirect grouping update. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| { | ||
| echo "gateway-pid=$GATEWAY_PID" | ||
| echo "gateway-port=${MCP_GATEWAY_PORT}" | ||
| echo "gateway-api-key=${MCP_GATEWAY_API_KEY}" | ||
| } >> $GITHUB_OUTPUT |
There was a problem hiding this comment.
The redirect target is unquoted (} >> $GITHUB_OUTPUT). In this repo’s setup scripts we generally quote GitHub-provided file path vars (e.g. "$GITHUB_OUTPUT") to avoid SC2086-style word splitting/globbing and to keep output handling consistent with the other start_* scripts updated in this PR.
Resolves SC2129 shellcheck warnings by grouping consecutive redirects to the same file variable.
Changes
$GITHUB_OUTPUTredirects$GITHUB_OUTPUTredirects$GITHUB_OUTPUTredirectsPattern
No functional changes - redirects maintain identical behavior.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Changeset
$GITHUB_OUTPUTredirects in MCP setup scripts and their tests to satisfy SC2129 shellcheck warnings.