-
Notifications
You must be signed in to change notification settings - Fork 43
Fix SC2155: Separate export declaration from command substitution #7905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Split export PATH statements with command substitution into two statements to avoid masking exit status of the ls command. This resolves all 31 SC2155 shellcheck warnings in compiled workflow files. Changes: - pkg/workflow/claude_engine.go: Split export PATH into variable assignment + export - pkg/workflow/codex_engine.go: Split export PATH into variable assignment + export Fixes #7896 Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
|
@copilot use pathSetup |
Extract PATH setup logic into a pathSetup variable in claude_engine.go to match the pattern already used in codex_engine.go. This improves code consistency and maintainability. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
📰 VERDICT: Smoke Copilot Playwright has concluded. All systems operational. This is a developing story. 🎤 |
|
✅ Firewall validation complete... Smoke Codex Firewall confirmed network sandboxing is operational. 🛡️ |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
🤖 DIAGNOSTIC COMPLETE: Smoke Copilot No Firewall STATUS: ALL_UNITS_OPERATIONAL. MISSION_SUCCESS. |
|
🎉 Yo ho ho! Smoke Copilot Safe Inputs found the treasure and completed successfully! ⚓💰 |
Smoke Test Results✅ File Writing: Created test file successfully Overall Status: Note: safeinputs-gh tool is not available in this workflow execution environment.
|
|
Firewall smoke test:
|
Smoke Test Results
Overall Status: PASS ✅
|
Smoke Test Results (Run 20542140706)Last 2 Merged PRs: #7910, #7903 ✅ GitHub MCP Testing Status: PARTIAL PASS (5/6) cc
|
Smoke Test Results (Run #20542140718)Last 2 Merged PRs:
✅ GitHub MCP - Retrieved 2 merged PRs Status: PARTIAL PASS (4/5 tests passed)
|
Smoke Test Results for Claude EngineLast 2 Merged PRs:
Test Results:
Overall Status: PASS (5/6 tests passed, 1 tool unavailable)
|
|
Merged PR titles: jsweep: Prioritize files with
|
Fix SC2155: Separate export declaration from command substitution in workflows
Progress Checklist
make buildmake recompileactionlint .github/workflows/*.lock.ymlSummary
Successfully fixed all 31 SC2155 shellcheck warnings by separating variable declaration from command substitution in PATH export statements. The problematic pattern:
Was changed to:
This prevents masking the exit status of the
lscommand, ensuring that failures are properly detected whenset -eis enabled.Both
claude_engine.goandcodex_engine.gonow consistently use thepathSetupvariable pattern for better code maintainability.All tests pass and actionlint confirms 0 SC2155 warnings remain.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.