Fix SC2155 shellcheck errors in generated workflow scripts#10031
Merged
Fix SC2155 shellcheck errors in generated workflow scripts#10031
Conversation
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
- Separated variable declaration from assignment for API_KEY and MCP_GATEWAY_API_KEY - Fixed in pkg/workflow/mcp_servers.go to generate proper shell code - Eliminated all 122 SC2155 errors across all workflows Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
- Fixed 122 SC2155 shellcheck errors across all workflows - Pre-existing test failure in pkg/campaign unrelated to this fix - All shellcheck SC2155 errors now resolved Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix critical shellcheck issues in high-priority workflows
Fix SC2155 shellcheck errors in generated workflow scripts
Jan 15, 2026
Contributor
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
Contributor
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
Contributor
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
Contributor
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
Contributor
Smoke Test Results - Run #21022051669Last 2 Merged PRs:
Test Results:
Status: PASS (4/5 tests passed, go command unavailability is expected) cc: @pelikhan
|
Contributor
Smoke Test Results (Claude)Last 2 Merged PRs:
Test Results:
Overall: PARTIAL PASS (5/6 tests passed)
|
pelikhan
approved these changes
Jan 15, 2026
This was referenced Jan 15, 2026
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.
All 122 workflows had SC2155 shellcheck errors: declaring and assigning variables with command substitution in one line masks command failures and prevents proper error detection.
Changes
pkg/workflow/mcp_servers.goto generate shell code that separates variable declaration from assignmentBefore
After
Impact
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.