Skip to content

Commit 6171a09

Browse files
Copilotzarennergithub-actions[bot]claude
authored
fix(copilot): support arbitrary HOME directory, not just /home/runner (#38725)
* fix: support arbitrary HOME directory, not just /home/runner * Recompile lock files for $HOME-based Copilot config paths * Fix MCP gateway review feedback Co-authored-by: zarenner <13670625+zarenner@users.noreply.github.com> * docs(adr): add draft ADR-38725 for $HOME-based Copilot config paths Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Zach Renner <13670625+zarenner@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 654fbc1 commit 6171a09

265 files changed

Lines changed: 3000 additions & 2042 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/patch-copilot-home-expansion-self-hosted-runners.md

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/skills/http-mcp-headers/SKILL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,12 @@ env:
8282
DD_API_KEY: ${{ secrets.DD_API_KEY }}
8383
DD_APPLICATION_KEY: ${{ secrets.DD_APPLICATION_KEY }}
8484
DD_SITE: ${{ secrets.DD_SITE || 'datadoghq.com' }}
85-
GH_AW_MCP_CONFIG: /home/runner/.copilot/mcp-config.json
8685
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
8786
# ... other env vars
8887
```
8988

89+
`GH_AW_MCP_CONFIG` is intentionally NOT in the YAML `env:` block — it is exported from the run script (`export GH_AW_MCP_CONFIG="$HOME/.copilot/mcp-config.json"`) so `$HOME` is resolved at runtime. GitHub Actions does not shell-expand `env:` values, so the path must be set via `export` to work on self-hosted/containerized runners where `HOME` is not `/home/runner`.
90+
9091
## Implementation Details
9192

9293
### Key Functions

.github/workflows/ab-testing-advisor.lock.yml

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/ace-editor.lock.yml

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/agent-performance-analyzer.lock.yml

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/agent-persona-explorer.lock.yml

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)