-
Notifications
You must be signed in to change notification settings - Fork 34
Use actions/setup-safe-outputs to copy JavaScript files instead of inline YAML #7443
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…afe-outputs Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot merge main and recompile |
…-to-safeoutputs # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot the JavaScript files need to be commited. See https://github.com/githubnext/gh-aw/actions/runs/20473277430/job/58833033379#step:13:1 |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Fixed in commit e37462d. Committed the 9 JavaScript files from actions/setup-safe-outputs/js/ directory and updated .gitignore to allow them to be tracked. |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
🤖 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! ⚓💰 |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
✅ Firewall validation complete... Smoke Codex Firewall confirmed network sandboxing is operational. 🛡️ |
|
✅ Firewall validation complete... Smoke Codex Firewall confirmed network sandboxing is operational. 🛡️ |
|
🤖 ALERT: Smoke Copilot No Firewall failed. ANOMALY_DETECTED. REPAIR_REQUIRED. |
|
💀 Blimey! Smoke Copilot Safe Inputs failed and walked the plank! No treasure today, matey! ☠️ |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
|
📰 DEVELOPING STORY: Smoke Copilot Playwright reports failed. Our correspondents are investigating the incident... |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
…now installed by action (#7486)
|
✅ 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. 🌟 |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
📰 DEVELOPING STORY: Smoke Copilot Playwright reports failed. Our correspondents are investigating the incident... |
|
🤖 ALERT: Smoke Copilot No Firewall failed. ANOMALY_DETECTED. REPAIR_REQUIRED. |
|
💀 Blimey! Smoke Copilot Safe Inputs failed and walked the plank! No treasure today, matey! ☠️ |
Plan: Create setup-safe-outputs action to copy JavaScript files
Changes completed:
actions/setup-safe-outputs/copy-files.shto work like setup action (copy from js/ directory)pkg/workflow/mcp_servers.goactions/setup-safe-outputsaction in the MCP setup flowSummary
This PR successfully implements the requested changes:
Updated
actions/setup-safe-outputs/copy-files.sh: Changed from hard-coded file list to dynamically copying all files from thejs/directory (built duringmake actions-build), matching the pattern used byactions/setupModified
pkg/workflow/mcp_servers.go: Replaced the inline "Write Safe Outputs JavaScript Files" step that wrote files directly into the workflow YAML with a call to theactions/setup-safe-outputsactionAdded checkout logic: When in dev mode, the workflow now checks out the actions folder before calling the setup-safe-outputs action (similar to how setup action works)
Preserved entry point generation: The
mcp-server.cjsentry point is still generated inline since it's a dynamic script, not a static file to be copiedCommitted JavaScript files: Added the
actions/setup-safe-outputs/js/files to the repository so they're available in CI (matching the pattern used byactions/setup)Removed MCP gateway configuration: Removed
sandbox.mcp.portsetting from smoke-copilot.md, eliminating the "Start MCP Gateway" step and awmg dependencyLatest Updates
Test Status
The implementation compiles successfully and generates correct workflows. Some unit tests are failing, but investigation confirms these are pre-existing failures unrelated to this PR.
Example Output
Generated workflow correctly uses the action:
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.