Split safe-inputs setup into separate JavaScript/config and tool file steps #5568
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.
The compiler was generating all safe-inputs files in a single workflow step, mixing infrastructure setup (JavaScript modules, MCP server, configuration) with tool-specific file generation.
Changes
Modified
pkg/workflow/mcp_servers.go:generateMCPSetup()to produce two sequential steps instead of one:tools.json.cjs,.sh,.py)The split occurs after
chmod +x /tmp/gh-aw/safe-inputs/mcp-server.cjs, cleanly separating infrastructure from tool-specific artifacts.Example workflow output:
All workflow lock files have been recompiled to reflect the new step structure.
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/user/usr/bin/gh gh api user --jq .login ut.js GO111MODULE es/.bin/sh GOINSECURE GOMOD GOMODCACHE go env '../../**/*.json' '!../../workflow/js/**/*.json' --ignore-path -- GO111MODULE ps GOINSECURE GOMOD GOMODCACHE ps(http block)/usr/bin/gh gh api user --jq .login '**/*.cjs' '**/*.ts' '**/*.json' GO111MODULE /usr/local/.ghcup/bin/git GOINSECURE GOMOD GOMODCACHE git add . -v ps GOSUMDB GOWORK ules/.bin/sh ps(http block)/usr/bin/gh gh api user --jq .login d/gh-aw/main.go d/gh-aw/capitalization_test.go 20c0783ad176c7a347db4b75ff6ae03bc55/log.json GOINSECURE GOMOD GOMODCACHE ache/go/1.25.0/x64/pkg/tool/linux_amd64/compile -c /ref/tags/v8 GOPROXY 4055515/b331=> GOSUMDB GOWORK -d/gh-aw sh(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.