Skip to content

release: GH_HOST proxy fix (PR #1493) needs release and gh-aw version bump #1499

@lpcox

Description

@lpcox

Problem

PR #1493 (fix: always derive GH_HOST from GITHUB_SERVER_URL) was merged on 2026-03-29, but the fix is not yet in any AWF release. The latest release is v0.25.3 (2026-03-28), one day before the merge.

User confirmation of the remaining gap

In gh-aw#23461 (comment), @j-srodka confirmed testing with gh-aw v0.64.3:

The good news: GITHUB_API_URL and GITHUB_GRAPHQL_URL are now correct (real GitHub endpoints). However, GH_HOST is still being set to the proxy's localhost address before our steps execute as expected given the AWF issue @lpcox referenced.

Our gh pr checkout step succeeded, but only because we've retained a workaround that resets GH_HOST back to github.com before the checkout. So v0.64.3 is a partial fix — the API URL side is resolved, but the GH_HOST side is not yet.

This confirms:

  1. API URLs fixed — gh-aw v0.64.3 resolved GITHUB_API_URL and GITHUB_GRAPHQL_URL for pre-agent steps
  2. GH_HOST still broken — DIFC-rewritten GH_HOST still leaks into the AWF container via --env-all
  3. 🔧 Workaround in place — user manually resets GH_HOST before gh pr checkout

What's needed

1. Release new AWF version (v0.25.4+)

PR #1493 fixes GH_HOST inside the AWF container by always deriving it from GITHUB_SERVER_URL:

  • For GHES/GHEC: sets GH_HOST to the canonical hostname (overriding any proxy value)
  • For github.com: deletes any leaked GH_HOST (since gh defaults to github.com)

This fix is merged but unreleased. A new version needs to be minted.

2. Bump gh-aw to reference new AWF version

After the AWF release, gh-aw needs to update its AWF image references (currently v0.25.1) to the new version so compiled workflows pick up the fix.

3. Verify the two-layer fix is complete

With both updates:

The pre-agent gh pr checkout step runs on the runner host (outside the AWF container), so it uses the runner's environment directly. If DIFC sets GH_HOST at the job level, this step will still see the proxy value unless:

  • gh-aw compiler emits a step-level env: { GH_HOST: ... } override on the checkout step, OR
  • The DIFC proxy fix (v0.64.3) already handles this for pre-agent steps

@j-srodka's workaround suggests the pre-agent step still needs attention.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions