You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: 'GH_HOST' set with GITHUB_OUTPUT (not env or env-threaded), breaking Process Safe Outputs on GHES #23093
In the safe-outputs agentic workflow, the Configure GH_HOST for enterprise compatibility step is sometimes compiled to write GH_HOST into $GITHUB_OUTPUT rather than $GITHUB_ENV. The value is unused downstream (not picked up via env threading or steps.ghes-host-config.outputs.GH_HOST), so subsequent jobs referencing the gh CLI (notably Process Safe Outputs) default to public github.com instead of the expected GitHub Enterprise host.
What failed
For steps on GHES, GH_HOST is expected to be available as an environment variable. Instead, it was written to $GITHUB_OUTPUT but not surfaced into step/job env, so was never seen by subsequent steps.
Why it failed
Compiler used an incorrect step template for Configure GH_HOST for enterprise compatibility, writing GH_HOST to $GITHUB_OUTPUT not $GITHUB_ENV.
Downstream jobs failed to thread env (env: GH_HOST: ${{ steps.ghes-host-config.outputs.GH_HOST }}) or lacked direct export.
Root cause
Regression in the build template or generator for this step around the v0.64.0 $GITHUB_ENV hardening changes. The canonical code in pkg/workflow/ghes_host_step.go is correct; this suggests the error results from an intermediate template or missed job regeneration (stale .lock.yml).
Activity
lpcox commentedon Mar 26, 2026
@grahame-white thanks, i'll take a look
lpcox commentedon Mar 26, 2026
🔗 AWF tracking issue: https://github.com/github/gh-aw-firewall/issues/github/gh-aw-firewall#1460
lpcox commentedon Mar 31, 2026
@grahame-white could you let me know if the latest version of gh-aw fixes this issue for you?
grahame-white commentedon Mar 31, 2026
@lpcox updating to v0.65.0 appears to have resolved this and copilot code reviewer isn't reporting any similar issues.
lpcox commentedon Mar 31, 2026
@grahame-white that's great to hear! I'm going to close the issue.
Update community contributions in README