Skip to content

gh is an undocumented prerequisite for installing AWF on self-hosted runners: "Install AWF binary" fails with "gh: command not found" (v1.2.2) #77498

Backlog

Description

@benissimo

Summary

gh is an undocumented prerequisite for installing AWF on a self-hosted runner. install_awf_binary.sh verifies the release with gh attestation verify, and neither the script, the compiled "Install AWF binary" step nor the self-hosted runner docs say that gh must be present. On a self-hosted runner image without gh the agent job fails. On GitHub-hosted runners gh is preinstalled, so the step passes there.

Environment

gh-aw v1.2.2 (compiler and github/gh-aw-actions/setup); the same code path is in v1.2.3
topology runner.topology: arc-dind, self-hosted runners on a runner group
engine copilot (Copilot CLI 1.0.103 and 1.0.105 both reproduce)
runner self-hosted image without gh on PATH

The same workflow compiled with v1.0.1 ran green on the same runner group.

Observed

The agent job stops at the compiled step:

- name: Install AWF binary
  env:
    GH_TOKEN: ${{ github.token }}
    GH_HOST: github.com
  run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.29.11 --rootless
release_integrity.sh: line 188: gh: command not found

Cause

actions/setup/sh/release_integrity.sh verify_release_attestation runs gh attestation verify when attestation is required, with no command -v gh check. install_awf_binary.sh sources it and calls it for checksums.txt, release-identity.txt and the downloaded binary. v1.2.3 still calls gh attestation verify in that file (it adds handling for API quota exhaustion, not for a missing gh).

The runner requirements in reference/self-hosted-runners.md list Docker and Node.js, and reference/arc-dind-copilot-agent.md lists helm, kubectl, Docker/Compose and Node.js. Neither mentions gh.

Expected

One of:

  • document gh as a runner prerequisite for rootless and arc-dind installs of AWF, or
  • have the installer check command -v gh and fail with a message that names the requirement, or
  • install gh when it is missing, as the compiler already does for the skills step with install_gh_cli.sh.

Related

Workaround

A step before "Install AWF binary" that downloads a pinned gh release tarball, checks its SHA256 and appends its bin directory to $GITHUB_PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ai-inspectedbacklog:runners-toolscommunity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions