Conversation
…v vars Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
Agentic Changeset Generator triggered by this pull request |
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
…-copilot-cli-0-0-340
|
@copilot add code in the mcp server configuration step to:
|
…ub MCP Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done. Added GITHUB_PERSONAL_ACCESS_TOKEN environment variable configuration with the ${} passthrough pattern:
Commit: Short hash will be included after push completes.
Done in commit 43a958e. Added GITHUB_PERSONAL_ACCESS_TOKEN environment variable configuration with the ${} passthrough pattern:
|
…ithub.com/githubnext/gh-aw into copilot/update-github-copilot-cli-0-0-340
…setup for safe outputs - Removed redundant environment variable declarations in multiple workflow files. - Consolidated the setup of `GITHUB_PERSONAL_ACCESS_TOKEN` and `GITHUB_AW_SAFE_OUTPUTS_CONFIG` to improve maintainability. - Introduced a new function `generateSafeOutputsConfig` to handle safe outputs configuration generation, replacing the previous inline logic. - Updated the `applySafeOutputEnvToMap` function to utilize the new safe outputs configuration generation method. - Ensured consistent handling of safe outputs across various workflows, enhancing clarity and reducing duplication.
|
@copilot fix tests |
…ify cache configurations
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Fixed in commit (will update after push). Updated test expectations in
Fixed in commit 0d85f9b. Updated test expectations in |
Copilot CLI Upgrade to 0.0.340
Summary
Upgrading GitHub Copilot CLI from version 0.0.339 to 0.0.340 and implementing the breaking change for MCP server environment variable configuration.
Changes Completed
DefaultCopilotVersionconstant from "0.0.339" to "0.0.340"renderSafeOutputsCopilotMCPConfigto use${VAR}syntax for env var referencesGITHUB_AW_SAFE_OUTPUTSto use\${GITHUB_AW_SAFE_OUTPUTS}GITHUB_AW_SAFE_OUTPUTS_CONFIGto use\${GITHUB_AW_SAFE_OUTPUTS_CONFIG}GITHUB_PERSONAL_ACCESS_TOKENenvironment variable configurationGITHUB_AW_SAFE_OUTPUTS_CONFIGImplementation Details
Breaking Change: MCP Environment Variables
Copilot CLI 0.0.340 introduces a breaking change in how environment variables are handled in MCP server configurations:
Before (0.0.339):
"VAR": "ENV_NAME"would look upENV_NAMEand pass its valueAfter (0.0.340):
${VAR_NAME}syntax"VAR": "${ENV_NAME}"looks upENV_NAMEand passes its valueGitHub MCP Server Configuration
The GitHub MCP server now uses the NAME=NAME pattern with
${GITHUB_PERSONAL_ACCESS_TOKEN}:Setup MCPs Step:
Docker Arguments (Local Mode):
MCP Server Env Section:
Remote Mode (HTTP):
This ensures the environment variable flows through the system:
GITHUB_PERSONAL_ACCESS_TOKENin the step env-e GITHUB_PERSONAL_ACCESS_TOKEN${GITHUB_PERSONAL_ACCESS_TOKEN}to reference it${GITHUB_PERSONAL_ACCESS_TOKEN}when launching the MCP serverFiles Modified
pkg/constants/constants.go- Updated version constantpkg/workflow/copilot_engine.go- Updated MCP env var syntax for safe-outputs and GitHub MCPpkg/workflow/mcps.go- Added GITHUB_PERSONAL_ACCESS_TOKEN to Setup MCPs env sectionpkg/workflow/copilot_engine_test.go- Updated test expectationspkg/workflow/github_remote_mode_test.go- Updated test for new ${} syntaxpkg/workflow/mcp_config_compilation_test.go- Fixed test to find correct env sectionpkg/workflow/safe_output_helpers_test.go- Fixed test expectations for GITHUB_AW_SAFE_OUTPUTS_CONFIG*.lock.ymlworkflow files - Recompiled with new version and configurationTesting
Notes
GITHUB_PERSONAL_ACCESS_TOKEN: "${GITHUB_PERSONAL_ACCESS_TOKEN}") ensures consistencyOriginal prompt
This section details on the original issue you should resolve
<issue_title>[ca] Update GitHub Copilot CLI to 0.0.340</issue_title>
<issue_description># Update GitHub Copilot CLI to 0.0.340
This PR updates the GitHub Copilot CLI from version 0.0.339 to 0.0.340.
Version Change Summary
Changes in 0.0.340
Breaking Changes
MCP Server Environment Variable Configuration - Customers who have configured MCP Servers will need to update their
~/.copilot/mcp-config.json:envsection are now treated as literal values by default$and wrap in${}"GITHUB_ACCESS_TOKEN": "GITHUB_TOKEN"to"GITHUB_ACCESS_TOKEN": "${GITHUB_TOKEN}"New Features
-pMode-pmode--allow-all-pathsargument to automatically approve all path accessBug Fixes
Windows Support Improvements
Debugging Enhancements
Tool Call Handling
tool_useblock must have a correspondingtool_resultblock in the next message" errortool_useids were found withouttool_resultblocks immediately after: toolu_013Ar6KT5dwjTY6oNdZqZ7bJ. Eachtool_useblock must have a correspondingtool_resultblock in the next message.","code":"invalid_request_body"} copilot-cli#102Performance
No performance improvements explicitly mentioned in this release.
Security
No security updates explicitly mentioned in this release.
Impact Assessment
Risk Level: Low
Affected Features
MCP Server Configuration (Breaking)
~/.copilot/mcp-config.jsonPath Access Control (Enhancement)
-pmodeWindows Users (Improvement)
Migration Required: Yes (for MCP users only)
Users who have configured MCP Servers with environment variables in the
envsection must:~/.copilot/mcp-config.json"KEY": "ENV_VAR"to"KEY": "${ENV_VAR}"Example:
Release Timeline
Changelog Links
Files Changed
pkg/constants/constants.go- UpdatedDefaultCopilotVersionconstant.github/workflows/*.lock.yml- Recompiled workflow files with new versionTesting
make recompilecompleted successfullyRecommendation
Approve and merge - This is a minor update with important bug fixes (especially the tool call handling fix) and Windows support improvements. The breaking change for MCP server configuration is well-documented and only affects users who have custom MCP server configurations with environment variables.
🤖 Generated with Claude Code
Show patch preview (310 of 310 lines)
From 052e980391ae136bb416b1df09fe4793a4499a3e Mon Sep 17 00:00:00 2001 From: CLI Version Checker <github-actions[bot]@users.noreply.github.com> Date: Mon, 13 Oct 2025 22:18:06 +0000 Subject: [PATCH] Update GitHub Copilot CLI to version ... </details> Fixes githubnext/gh-aw#1652 <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/githubnext/gh-aw/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo.