Skip to content

feat: pass GITHUB_HOST to GitHub MCP server for enterprise support#20944

Merged
pelikhan merged 5 commits intomainfrom
copilot/ensure-github-host-configuration
Mar 14, 2026
Merged

feat: pass GITHUB_HOST to GitHub MCP server for enterprise support#20944
pelikhan merged 5 commits intomainfrom
copilot/ensure-github-host-configuration

Conversation

Copy link
Contributor

Copilot AI commented Mar 14, 2026

Summary

Ensures GITHUB_HOST (derived from GITHUB_SERVER_URL) is properly passed to the github/github-mcp-server in all rendering paths so that enterprise GitHub (GHE) deployments work correctly.

Changes

Local Docker mode (RenderGitHubMCPDockerConfig)

Added GITHUB_HOST to the container env section:

  • Copilot engine: "GITHUB_HOST": "\${GITHUB_SERVER_URL}" (Copilot CLI passthrough syntax)
  • Claude/Custom engines: "GITHUB_HOST": "$GITHUB_SERVER_URL" (plain shell variable)

The GITHUB_SERVER_URL is already present in the MCP gateway container environment (via -e GITHUB_SERVER_URL in mcp_setup_generator.go), so the gateway expands it when launching the child Docker container.

Remote mode (RenderGitHubMCPRemoteConfig)

Added GITHUB_HOST to the env section (Copilot engine) with value "\${GITHUB_SERVER_URL}" so the Copilot CLI can pass the correct GitHub host to the remote MCP server.

TOML mode (renderGitHubTOML — Codex engine)

Added GITHUB_HOST = "$GITHUB_SERVER_URL" to the env vars for the local Docker section.

Tests

Updated TestRenderGitHubMCPDockerConfig and TestRenderGitHubMCPRemoteConfig to assert GITHUB_HOST is present in the rendered output.

Security Summary

No security vulnerabilities introduced or discovered. CodeQL scan found 0 alerts.



✨ PR Review Safe Output Test - Run 23090184937

💥 [THE END] — Illustrated by Smoke Claude ·

Copilot AI and others added 2 commits March 14, 2026 14:32
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 14, 2026

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions
Copy link
Contributor

github-actions bot commented Mar 14, 2026

✅ All tools validated successfully! Agent Container Smoke Test confirms agent container is ready.

@github-actions
Copy link
Contributor

📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing...

@github-actions
Copy link
Contributor

github-actions bot commented Mar 14, 2026

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

@github-actions
Copy link
Contributor

Agent Container Tool Check

Tool Status Version
bash 5.2.21
sh available
git 2.53.0
jq 1.7
yq 4.52.4
curl 8.5.0
gh 2.87.3
node 20.20.0
python3 3.12.3
go 1.24.13
java 10.0.102
dotnet 10.0.102

Result: 12/12 tools available ✅

Overall Status: PASS

🔧 Tool validation by Agent Container Smoke Test ·

@github-actions
Copy link
Contributor

Smoke Test (Codex)

PRs: #20941 refactor: rename runActionlintOnFile to runActionlintOnFiles; #20939 refactor: extract shared project config parsing helpers to eliminate duplication
GitHub MCP: ✅
Serena MCP (activate + 3+ symbols): ✅
Playwright (github.com title contains GitHub): ✅
Web-fetch (github.com contains GitHub): ✅
File write + bash cat: ✅
Build GOCACHE=/tmp/go-cache GOMODCACHE=/tmp/go-mod make build: ✅
Overall status: PASS

🔮 The oracle has spoken through Smoke Codex ·

Warning

⚠️ Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • ab.chatgpt.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "ab.chatgpt.com"

See Network Configuration for more information.

@github-actions
Copy link
Contributor

Smoke Test 23090184950: ⚠️ Partial Pass

Test
GitHub MCP
MCP Scripts GH CLI
Serena MCP
Playwright
Web Fetch
File Writing + Bash
Discussion Interaction
Build gh-aw
Discussion Creation
Workflow Dispatch
PR Review ⚠️

Overall: ⚠️ PARTIAL PASS (11/12 tests passed, Serena MCP unavailable)

@Copilot (PR author) · Assignees: @pelikhan, @Copilot

📰 BREAKING: Report filed by Smoke Copilot ·

@github-actions github-actions bot removed the smoke label Mar 14, 2026
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR correctly adds GITHUB_HOST to all GitHub MCP server rendering paths, enabling enterprise GitHub (GHES) support. The changes are well-structured across Docker local, remote, and TOML (Codex) modes. Left 2 minor comments about documentation and env var ordering consistency.

📰 BREAKING: Report filed by Smoke Copilot

envVars := make(map[string]string)
envVars["GITHUB_PERSONAL_ACCESS_TOKEN"] = "$GH_AW_GITHUB_TOKEN"
// GitHub host for enterprise deployments
envVars["GITHUB_HOST"] = "$GITHUB_SERVER_URL"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good addition! Including GITHUB_HOST here ensures TOML-rendered GHES deployments work correctly. Consider documenting that $GITHUB_SERVER_URL is already injected into the MCP gateway environment so readers understand why this variable is available.

yaml.WriteString(" \"env\": {\n")
yaml.WriteString(" \"GITHUB_PERSONAL_ACCESS_TOKEN\": \"\\${GITHUB_MCP_SERVER_TOKEN}\"\n")
yaml.WriteString(" \"GITHUB_PERSONAL_ACCESS_TOKEN\": \"\\${GITHUB_MCP_SERVER_TOKEN}\",\n")
yaml.WriteString(" \"GITHUB_HOST\": \"\\${GITHUB_SERVER_URL}\"\n")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GITHUB_HOST env var is correctly added here for the remote Copilot MCP config. One small nit: the ordering GITHUB_PERSONAL_ACCESS_TOKEN before GITHUB_HOST is different from the Docker config where GITHUB_HOST comes first. Consider making the ordering consistent across all rendering paths for easier diffs in the future.

@github-actions
Copy link
Contributor

Commit pushed: d773eaa

Generated by Changeset Generator

@github-actions
Copy link
Contributor

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

@pelikhan
Copy link
Contributor

@copilot ensure GITHUB_HOST and GITHUB_SERVER_URL have the same expected format (check if https:// is required etc...)

@github-actions
Copy link
Contributor

Smoke Test Results — Run §23090184937

Test Status
1. GitHub MCP
2. GH CLI Scripts
3. Serena MCP
4. Make Build
5. Playwright
6. Tavily Search
7. File Writing
8. Bash Tool
9. Discussion Comment
10. AW MCP Status
11. Update PR
12. PR Review Comments
13. Submit PR Review
14. Resolve Thread ⚠️ skipped
15. Add Reviewer
16. Push to Branch
17. Close PR ⚠️ skipped

Overall: PARTIAL (2 skipped, 0 failed)

💥 [THE END] — Illustrated by Smoke Claude ·

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💥 Automated smoke test review - all systems nominal!

💥 [THE END] — Illustrated by Smoke Claude

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 14, 2026

@copilot ensure GITHUB_HOST and GITHUB_SERVER_URL have the same expected format (check if https:// is required etc...)

Confirmed compatible — both use the same https://hostname format:

  • GITHUB_SERVER_URL (GitHub Actions): always set as full URL, e.g. https://github.com or https://myorg.ghe.com (no trailing slash — set by the GitHub Actions runner)
  • GITHUB_HOST (github-mcp-server): expects full URL with https:// per upstream README — "prefix the hostname with the https:// URI scheme"

So GITHUB_HOST = $GITHUB_SERVER_URL is the correct direct assignment with no transformation needed. Added explicit comments in all three rendering paths (local Docker, remote, TOML) to make this clear (488cd19).

@pelikhan pelikhan marked this pull request as ready for review March 14, 2026 15:12
Copilot AI review requested due to automatic review settings March 14, 2026 15:12
@pelikhan pelikhan merged commit d66f7fc into main Mar 14, 2026
45 of 47 checks passed
@pelikhan pelikhan deleted the copilot/ensure-github-host-configuration branch March 14, 2026 15:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds propagation of GITHUB_HOST (derived from GITHUB_SERVER_URL) into GitHub MCP server configurations so GitHub Enterprise (GHE) deployments work across Docker/local, remote, and Codex/TOML rendering paths.

Changes:

  • Add GITHUB_HOST env var to GitHub MCP Docker/local JSON rendering (Copilot + non-Copilot variants).
  • Add GITHUB_HOST env var to GitHub MCP remote JSON rendering (Copilot env section).
  • Add GITHUB_HOST env var to Codex/TOML rendering and regenerate workflow lockfiles accordingly; update unit tests for Docker/remote renderers.

Reviewed changes

Copilot reviewed 174 out of 174 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/workflow/mcp_renderer_github.go Passes GITHUB_HOST through GitHub MCP renderers (TOML + Docker + remote).
pkg/workflow/github_remote_config_test.go Asserts GITHUB_HOST appears in rendered remote config.
pkg/workflow/engine_helpers_github_test.go Asserts GITHUB_HOST appears in rendered Docker config.
.github/workflows/workflow-skill-extractor.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/workflow-normalizer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/workflow-health-manager.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/workflow-generator.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/weekly-safe-outputs-spec-review.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/weekly-issue-summary.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/weekly-editors-health-check.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/video-analyzer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/unbloat-docs.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/ubuntu-image-analyzer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/typist.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/tidy.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/test-workflow.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/test-project-url-default.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/test-dispatcher.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/test-create-pr-error-handling.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/terminal-stylist.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/technical-doc-writer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/super-linter.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/sub-issue-closer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/step-name-alignment.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/static-analysis-report.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/stale-repo-identifier.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/smoke-workflow-call.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/smoke-workflow-call-with-inputs.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/smoke-update-cross-repo-pr.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/smoke-test-tools.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/smoke-temporary-id.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/smoke-project.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/smoke-multi-pr.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/smoke-gemini.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/smoke-create-cross-repo-pr.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/smoke-copilot.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/smoke-copilot-arm.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/smoke-codex.lock.yml Regenerated lock workflow (TOML + JSON sections) to include GITHUB_HOST.
.github/workflows/smoke-claude.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/smoke-call-workflow.lock.yml Regenerated lock workflow (TOML + JSON sections) to include GITHUB_HOST.
.github/workflows/smoke-agent-scoped-approved.lock.yml Regenerated lock workflow (TOML + JSON sections) to include GITHUB_HOST.
.github/workflows/smoke-agent-public-none.lock.yml Regenerated lock workflow (TOML + JSON sections) to include GITHUB_HOST.
.github/workflows/smoke-agent-public-approved.lock.yml Regenerated lock workflow (TOML + JSON sections) to include GITHUB_HOST.
.github/workflows/smoke-agent-all-none.lock.yml Regenerated lock workflow (TOML + JSON sections) to include GITHUB_HOST.
.github/workflows/smoke-agent-all-merged.lock.yml Regenerated lock workflow (TOML + JSON sections) to include GITHUB_HOST.
.github/workflows/slide-deck-maintainer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/sergo.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/semantic-function-refactor.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/security-review.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/security-compliance.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/security-alert-burndown.campaign.g.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/scout.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/safe-output-health.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/research.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/repository-quality-improver.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/repo-tree-map.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/repo-audit-analyzer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/release.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/refiner.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/q.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/python-data-charts.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/prompt-clustering-analysis.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/pr-triage-agent.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/pr-nitpick-reviewer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/portfolio-analyst.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/poem-bot.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/plan.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/pdf-summary.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/org-health-report.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/notion-issue-summary.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/metrics-collector.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/mergefest.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/mcp-inspector.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/lockfile-stats.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/layout-spec-maintainer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/jsweep.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/issue-triage-agent.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/issue-monster.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/issue-arborist.lock.yml Regenerated lock workflow (TOML + JSON sections) to include GITHUB_HOST.
.github/workflows/instructions-janitor.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/hourly-ci-cleaner.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/grumpy-reviewer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/gpclean.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/go-pattern-detector.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/go-logger.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/go-fan.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/glossary-maintainer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/github-remote-mcp-auth-test.lock.yml Regenerated lock workflow remote config env to include GITHUB_HOST.
.github/workflows/github-mcp-structural-analysis.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/functional-pragmatist.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/firewall.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/firewall-escape.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/example-workflow-analyzer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/example-permissions-warning.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/duplicate-code-detector.lock.yml Regenerated lock workflow (TOML + JSON sections) to include GITHUB_HOST.
.github/workflows/draft-pr-cleanup.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/docs-noob-tester.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/discussion-task-miner.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/dictation-prompt.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/developer-docs-consolidator.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/dev.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/dev-hawk.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/dependabot-go-checker.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/dependabot-burner.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/delight.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/deep-report.lock.yml Regenerated lock workflow (TOML + JSON sections) to include GITHUB_HOST.
.github/workflows/dead-code-remover.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-workflow-updater.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-testify-uber-super-expert.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-team-status.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-team-evolution-insights.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-syntax-error-quality.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-semgrep-scan.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-security-red-team.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-secrets-analysis.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-safe-outputs-conformance.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-safe-output-optimizer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-repo-chronicle.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-rendering-scripts-verifier.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-regulatory.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-performance-summary.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-observability-report.lock.yml Regenerated lock workflow (TOML + JSON sections) to include GITHUB_HOST.
.github/workflows/daily-news.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-multi-device-docs-tester.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-mcp-concurrency-analysis.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-malicious-code-scan.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-issues-report.lock.yml Regenerated lock workflow (TOML + JSON sections) to include GITHUB_HOST.
.github/workflows/daily-function-namer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-firewall-report.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-file-diet.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-fact.lock.yml Regenerated lock workflow (TOML + JSON sections) to include GITHUB_HOST.
.github/workflows/daily-doc-updater.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-doc-healer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-copilot-token-report.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-compiler-quality.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-code-metrics.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-cli-tools-tester.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-cli-performance.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-choice-test.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-assign-issue-to-user.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/daily-architecture-diagram.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/craft.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/copilot-session-insights.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/copilot-pr-prompt-analysis.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/copilot-pr-nlp-analysis.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/copilot-pr-merged-report.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/copilot-cli-deep-research.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/copilot-agent-analysis.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/contribution-check.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/constraint-solving-potd.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/commit-changes-analyzer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/code-simplifier.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/code-scanning-fixer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/cloclo.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/cli-version-checker.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/cli-consistency-checker.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/claude-code-user-docs-review.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/ci-doctor.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/ci-coach.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/chroma-issue-indexer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/changeset.lock.yml Regenerated lock workflow (TOML + JSON sections) to include GITHUB_HOST.
.github/workflows/breaking-change-checker.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/brave.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/bot-detection.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/blog-auditor.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/auto-triage-issues.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/audit-workflows.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/artifacts-summary.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/archie.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/ai-moderator.lock.yml Regenerated lock workflow (TOML + JSON sections) to include GITHUB_HOST.
.github/workflows/agent-persona-explorer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/agent-performance-analyzer.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.github/workflows/ace-editor.lock.yml Regenerated lock workflow to include GITHUB_HOST in GitHub MCP env.
.changeset/patch-pass-github-host-to-mcp.md Adds changeset entry describing the enterprise-host propagation fix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 173 to 180
// Build environment variables
envVars := make(map[string]string)
envVars["GITHUB_PERSONAL_ACCESS_TOKEN"] = "$GH_AW_GITHUB_TOKEN"
// GitHub host for enterprise deployments (format: https://hostname, e.g. https://myorg.ghe.com).
// GITHUB_SERVER_URL is set by GitHub Actions as a full URL (https://hostname, no trailing slash),
// which matches the format expected by github-mcp-server for GITHUB_HOST.
envVars["GITHUB_HOST"] = "$GITHUB_SERVER_URL"

Comment on lines 175 to +179
envVars["GITHUB_PERSONAL_ACCESS_TOKEN"] = "$GH_AW_GITHUB_TOKEN"
// GitHub host for enterprise deployments (format: https://hostname, e.g. https://myorg.ghe.com).
// GITHUB_SERVER_URL is set by GitHub Actions as a full URL (https://hostname, no trailing slash),
// which matches the format expected by github-mcp-server for GITHUB_HOST.
envVars["GITHUB_HOST"] = "$GITHUB_SERVER_URL"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants