Skip to content

v0.77.5 regression: ghcr.io/github/gh-aw-mcpg and github-mcp-server lose digest pinning after recompile #36579

Closed

Description

@wizardofosmium

Summary

When recompiling a workflow with gh aw v0.77.5, the resulting .lock.yml no longer emits @sha256: digest pinning for two GHCR images:

  • ghcr.io/github/gh-aw-mcpg
  • ghcr.io/github/github-mcp-server

The same workflow compiled with v0.74.8 produced fully pinned references for both. Only node:lts-alpine retains its digest in v0.77.5 output.

Environment

  • gh aw version v0.77.5 (githubnext/gh-aw)
  • Compared against a lock file previously generated with v0.74.8

Workflow shape

  • Engine: codex
  • MCP enabled (uses gh-aw-mcpg and github-mcp-server)
  • safe-outputs: { create-issue, add-comment }
  • tools.repo-memory enabled
  • Network: defaults only

Observed (v0.77.5)

In the recompiled lock file, the manifest comment shows:

"containers":[
  {"image":"ghcr.io/github/gh-aw-firewall/agent:0.25.58"},
  {"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.25.58"},
  {"image":"ghcr.io/github/gh-aw-firewall/squid:0.25.58"},
  {"image":"ghcr.io/github/gh-aw-mcpg:v0.3.22"},
  {"image":"ghcr.io/github/github-mcp-server:v1.1.0"},
  {"image":"node:lts-alpine","digest":"sha256:2bdb6…","pinned_image":"node:lts-alpine@sha256:2bdb6…"}
]

Throughout the lock body, gh-aw-mcpg and github-mcp-server are referenced as image:tag rather than image:tag@sha256:digest. Only node:lts-alpine is referenced with @sha256:.

Expected

Same as v0.74.8: every ghcr.io image reference includes its @sha256:digest suffix everywhere it appears in the lock (download step, docker run command, MCP container config JSON, manifest comment).

Flags tried (none restored pinning)

  • gh aw compile --validate-images
  • gh aw compile --strict
  • gh aw compile --force-refresh-action-pins
  • Combinations of the above

gh aw validate reports 0 errors and 0 warnings on the v0.77.5 output despite the missing digests.

Impact

Supply-chain risk: the workflow pulls these containers by mutable tag on every run, so a poisoned tag push at GHCR would silently propagate. Flagged in our internal Codex review as a P2 finding.

Workaround

We hand-patched all 9 occurrences in our lock file to image:tag@sha256:digest, with digests resolved via the GHCR manifest API. PR: https://github.com/ignitionapp/Practice-Ignition/pull/50825 (private repo, but the diff illustrates the shape). We added a maintainer-facing callout in the source .md warning that the next gh aw compile will silently strip the hand-pins.

Ask

Restore the v0.74.8 behavior so a clean recompile produces fully-pinned ghcr.io references for gh-aw-mcpg and github-mcp-server without manual intervention.

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions