Fix missing safe_inputs_bootstrap.cjs in compiled workflows#5796
Fix missing safe_inputs_bootstrap.cjs in compiled workflows#5796
Conversation
…file - Add GetSafeInputsBootstrapScript() function in pkg/workflow/js.go to return the embedded bootstrap script - Add file writing step for safe_inputs_bootstrap.cjs in pkg/workflow/mcp_servers.go - Recompile all workflow files to include the missing bootstrap file - Fixes "Cannot find module './safe_inputs_bootstrap.cjs'" error in safe-inputs workflows Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
🔮 The ancient spirits stir... Smoke Codex awakens to divine this pull request... |
|
📰 BREAKING: Smoke Copilot Playwright is now investigating this pull request. Sources say the story is developing... |
|
💥 WHOOSH! Smoke Claude springs into action on this pull request! [Panel 1 begins...] |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
🤖 SYSTEM_INIT: Smoke Copilot No Firewall ACTIVATED. PROCESSING pull request. ALL SUBSYSTEMS ONLINE. |
|
📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing... |
Smoke Test - 2025-12-08T02:24:46ZLast 2 Merged PRs:
Test Results:
Status: PASS (5/6 tests, 1 expected failure)
|
Smoke Test Results✅ Playwright MCP: Navigated to github.com, title contains "GitHub" Overall Status: PASS
|
Smoke Test - Run 20014651243PRs: #5791 (safe-inputs), #5787 (MCP consolidation) Results:
Status: PASS (5/6 tests; gh auth expected to fail)
|
Smoke Test Results (Run 20014651248)Last 2 Merged PRs:
Test Results: Overall Status: PASS (5/6 tests passed, gh auth is expected limitation)
|
|
PRs reviewed: [docs] Remove bloat from memory.md reference documentation; Fix agentics-maintenance.yml syntax by updating generator to use bundler
|
Smoke Test Results - Copilot EngineTest Results:
Overall Status: Note: File operations and bash commands work correctly. MCP server integrations are configured but client tooling is not accessible in this environment. The gh safe-input tool was not available in the function calling interface. 📰🔥📋 https://github.com/githubnext/gh-aw/actions/runs/20014651241 fer issue #5796 🗺️ |
Workflows using safe-inputs failed with "Cannot find module './safe_inputs_bootstrap.cjs'" because the bootstrap module was embedded but never written to disk during compilation.
Changes
GetSafeInputsBootstrapScript()getter function to expose the embedded bootstrap scriptsafe_inputs_bootstrap.cjsin correct dependency order (after validation, before mcp_server modules that require it)The bootstrap file provides shared initialization logic for safe-inputs MCP servers:
Without this file on disk, the require statement failed at runtime despite the source being properly embedded in the Go binary.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/githubnext/gh-aw/actions/jobs/57388214685/logs/usr/bin/curl curl -s -L REDACTED(http block)https://api.github.com/user/usr/bin/gh gh api user --jq .login it/ref/tags/v5 GO111MODULE che/go-build/94/945c5af7514a5e8f81540a3b301a34860fb67b1c5b8f924614c8332c904292d3-d/gh-aw GOINSECURE GOMOD GOMODCACHE che/go-build/94/--jq env /ref/tags/v8 GO111MODULE e/git GOINSECURE GOMOD GOMODCACHE e/git(http block)/usr/bin/gh gh api user --jq .login -json GO111MODULE /opt/hostedtoolcache/go/1.25.0/x64/bin/go by/9dfc4987083degh GOMOD GOMODCACHE go env it/ref/tags/v5 by/9dfc4987083de1a31200c10835c55e9128523e74282b53dd9a605fbf809b5275 /opt/hostedtoolcache/go/1.25.0/x64/bin/go by/9dfc4987083de/home/REDACTED/work/gh-aw/gh-aw/gh-aw 9a605fbf809b5275mcp-server GOMODCACHE go(http block)/usr/bin/gh gh api user --jq .login -node.git -node.git 0fad33fd31ca1ed373138f77b9fde52ba75/log.json GOINSECURE %H %ct %D GOMODCACHE go 1/x6�� -json GO111MODULE(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Changeset
safe_inputs_bootstrap.cjs. This change adds a getter exposing the embedded bootstrap script and writes thesafe_inputs_bootstrap.cjsfile so workflows that require it can load successfully.Smoke Test Summary (2025-12-08T02:25:04Z)
Status: PASS
Summary: Copilot engine validated - GitHub MCP, file operations, bash, playwright, and cache memory all functional.