Add --deny-tool fetch_copilot_cli_documentation to Copilot engine by default#5888
Add --deny-tool fetch_copilot_cli_documentation to Copilot engine by default#5888
Conversation
…default Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
🤖 DIAGNOSTIC COMPLETE: Smoke Copilot No Firewall STATUS: ALL_UNITS_OPERATIONAL. MISSION_SUCCESS. |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
📰 VERDICT: Smoke Copilot Playwright has concluded. All systems operational. This is a developing story. 🎤 |
|
💥 WHOOSH! Smoke Claude springs into action on this pull request! [Panel 1 begins...] |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
🔮 The ancient spirits stir... Smoke Codex awakens to divine this pull request... |
Smoke Test Results - Claude EngineLast 2 Merged PRs:
Test Results:
Status: PASS (5/6 tests passed)
|
|
Smoke test results:
|
|
no effect |
Prevents Copilot agents from accessing their own documentation tool by default for security.
Changes
pkg/workflow/copilot_engine.go: Added--deny-tool fetch_copilot_cli_documentationflag after--disable-builtin-mcpsin the Copilot CLI argument builderpkg/workflow/copilot_engine_test.go: Added test assertion to verify the deny-tool flag is present in generated commandsExample
Generated Copilot commands now include:
The flag appears in both agent execution jobs and threat detection jobs.
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 it/ref/tags/v5 hanges) ache/go/1.25.0/x64/pkg/tool/linux_amd64/cgo i_documentation\git nds/plan.md 64/pkg/tool/linu--show-toplevel ache/go/1.25.0/x64/pkg/tool/linux_amd64/cgo ortc�� -go.git stmain.go ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet i_documentation\node E.md 64/pkg/tool/linu--help ache/go/1.25.0/x64/pkg/tool/linu--auto(http block)/usr/bin/gh gh api user --jq .login ference.git ference.git ache/go/1.25.0/x64/pkg/tool/linudelete i_documentation\gh nds/taskstoissueapi 64/pkg/tool/linuuser ache/go/1.25.0/x--jq -1 tags/v5 64/pkg/tool/linux_amd64/vet e(http block)/usr/bin/gh gh api user --jq .login tags/v5 --jq ab6519c5020aaab06fd90e016b9081c74cb/log.json i_documentation\gh START.md 64/pkg/tool/linuuser 1/x64/bin/npm @pla�� --help 64/pkg/tool/linux_amd64/vet(http block)If you need me to access, download, or install something from one of these locations, you can either:
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.
Changeset
--deny-tool fetch_copilot_cli_documentationflag to the Copilot engine so Copilot agents cannot access their own documentation tool by default. This updates generated Copilot CLI arguments and the corresponding workflow lockfiles.