-
Notifications
You must be signed in to change notification settings - Fork 35
Fix safe-inputs tool secrets not passed to MCP server process #8255
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
Add env block to "Start Safe Inputs MCP HTTP Server" step to properly pass tool-specific secrets (like GH_AW_GH_TOKEN) to the Node.js MCP server process. The issue was that the step tried to export environment variables that weren't defined in its context. Now the secrets are properly injected via the step's env block before being exported to the server process. This ensures tools like safeinputs-gh have access to secrets like GITHUB_TOKEN when they execute. Co-authored-by: pelikhan <[email protected]>
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
✅ Firewall validation complete... Smoke Codex Firewall confirmed network sandboxing is operational. 🛡️ |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
📰 VERDICT: Smoke Copilot Playwright has concluded. All systems operational. This is a developing story. 🎤 |
|
🤖 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! ⚓💰 |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
This comment has been minimized.
This comment has been minimized.
Smoke Test Results: Copilot EngineLast 2 Merged PRs:
Test Results:
Overall Status: ✅ PASS cc: @pelikhan
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@copilot remove the export statement for secrets defined by the safe inputs env variables. |
|
📰 VERDICT: Smoke Copilot Playwright has concluded. All systems operational. This is a developing story. 🎤 |
|
🤖 DIAGNOSTIC COMPLETE: Smoke Copilot No Firewall STATUS: ALL_UNITS_OPERATIONAL. MISSION_SUCCESS. |
|
📰 DEVELOPING STORY: Smoke Copilot reports failed. Our correspondents are investigating the incident... |
|
🎉 Yo ho ho! Smoke Copilot Safe Inputs found the treasure and completed successfully! ⚓💰 |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
✅ Firewall validation complete... Smoke Codex Firewall confirmed network sandboxing is operational. 🛡️ |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
Smoke Test Results✅ File Writing: Created Status: FAIL (missing required tool)
|
Smoke Test Results (Copilot No Firewall)Last 2 Merged PRs:
Test Results:
Overall Status: PASS (4/4 core tests passed)
|
|
PR1: Fix tests: Remove github-token from individual safe output type configurations
|
Smoke Test Results (Run 20613677472)✅ Cache Memory Test: Successfully wrote and verified cache file Overall Status: ❌ FAIL Note: Missing required tools for complete validation
|
|
PRs reviewed (latest merged): 8254 Fix tests: Remove github-token from individual safe output type configurations; 8252 Fix repo-memory folder path to use branch name and update glob pattern matching.
|
Smoke Test ResultsLast 2 merged PRs:
Test Results:
Overall: PASS (5/6 tests passed)
|
Safe-inputs tools with
env:configuration (likeGH_AW_GH_TOKENin gh.md) were not receiving their secrets because the MCP server start step exported variables that didn't exist in its environment.Changes
env:block to "Start Safe Inputs MCP HTTP Server" step inpkg/workflow/mcp_servers.gocollectSafeInputsSecrets()env:block are automatically available to the scriptExample
Before:
After:
All workflow lock files regenerated with the fix.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.