-
Notifications
You must be signed in to change notification settings - Fork 322
Suspected regression in v0.65.6: Install GitHub Copilot CLI no longer emits GH_HOST: github.com #24259
Description
Summary
It looks like gh aw compile may have regressed in v0.65.6 for workflows that set a workflow-level env.GH_HOST value for GitHub Enterprise Server.
Historically, the compiled Install GitHub Copilot CLI step emitted:
env:
GH_HOST: github.comWas natively handled since v0.58.3
That override is important because the Copilot CLI install/download path needs github.com, while GHES workflows commonly set a top-level GH_HOST for later GHES API calls.
In v0.65.6, this override may no longer be emitted automatically.
Expected behavior
When compiling a workflow that uses Copilot CLI, the generated Install GitHub Copilot CLI step should still include:
so the install step is isolated from any workflow-level GHES GH_HOST setting.
Actual behavior
In v0.65.6, the compiled workflow appears to omit that step-level override, allowing the workflow-level GH_HOST to leak into the Copilot CLI install step.
Why this matters
On GHES deployments, workflows often require a top-level GH_HOST such as a GHES hostname. If that value propagates into the Copilot CLI install step, the install/auth path can target the wrong host.
Minimal reproduction
Create a minimal workflow source with:
engine: copilot
a workflow-level env.GH_HOST set to a non-github.com host
Run:
gh aw compile path/to/workflow.md
Inspect the generated lock file:
grep -n "Install GitHub Copilot CLI" path/to/workflow.lock.yml
grep -n "GH_HOST: github.com" path/to/workflow.lock.yml
Check whether the install step still contains the explicit GH_HOST: github.com override.