Skip to content

fix(images): build yq with Go 1.27.4 in the tools images - #81

Merged
derekhsu merged 1 commit into
feat/image-only-clifrom
fix/tools-image-go-1.27.4
Nov 20, 2026
Merged

derekhsu merged 1 commit into
feat/image-only-clifrom
fix/tools-image-go-1.27.4

Conversation

@derekhsu

Copy link
Copy Markdown
Owner

Summary

The Hermes tools.3 publish run (after #80) stopped on a new Trivy finding in the yq binary that the tools images build from source:

ADDED HIGH CVE-2026-97054 stdlib v1.27.3 -> 1.26.11, 1.27.4 (usr/local/bin/yq)

Go 1.27.4 fixes it. This PR builds yq with Go 1.27.4 in both tools images.

Related Issue

Refs #79 (blocks the tools.3 release)

Changes

  • Dockerfile.tools and agents/hermes-01x/Dockerfile.tools: the yq-build stage uses golang:1.27.4-trixie@sha256:f18c3d73a184fb0582828510722e723b63a93f7188d11dd223d9be6f6880e65d instead of golang:1.27.3-trixie. The digest is the multi-arch index that the 1.27.4-trixie tag resolves to.
  • docs/modification/2026-10-31-openclaw-tools-image.md and tools/openclaw-tools-image/artifacts.lock: the yq build notes now say Go 1.27.4.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification: the OpenClaw and Hermes tools image Verify workflows build both images on amd64 and arm64 and run the Trivy new-findings check and the tool fixtures.
  • Tests not applicable — justification:
  • Docs updated for user-facing behavior changes
  • Docs not applicable — justification:
  • Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging)
  • Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification:
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

Documentation Writer Review

  • Documentation writer subagent reviewed the completed changes
  • Result: docs-updated
  • Evidence: docs/modification/2026-10-31-openclaw-tools-image.md and the tools/openclaw-tools-image/artifacts.lock comment. The review checked both against the Dockerfiles and the writing rules, and found no other mention of Go 1.27.3 outside conductor/ history. Verdict: pass, no fixes.
  • Agent: Claude Code

DGX Station Hardware Evidence

  • Tested on DGX Station
  • Tested commit:
  • Station profile/scenario:
  • Result:
  • Supporting evidence:

Verification

  • PR description includes a Signed-off-by: line and every commit appears as Verified in GitHub
  • Normal pre-commit, commit-msg, and pre-push hooks passed, or npm run validate:pr passed after refreshing origin/main when hooks were skipped or unavailable
  • Targeted behavior tests pass for the current change set, or tests are marked not applicable above — command/result or justification: covered by the tools image Verify workflows on this PR.
  • Applicable broad gate passed — npm test for broad runtime/test-harness changes; npm run check for repo-wide validation/coverage changes — command/result:
  • Quality Gates section completed with required justifications or waivers
  • No secrets, API keys, or credentials committed
  • npm run docs builds without warnings (doc changes only)

Signed-off-by: Derek Hsu derekhsu@hotmail.com

🤖 Generated with Claude Code

Trivy reports HIGH CVE-2026-97054 in the Go 1.27.3 standard library of
the yq binary that the OpenClaw and Hermes tools images build from
source. Go 1.27.4 fixes it. The Hermes tools.3 publish run stopped on
this finding.

Pin the yq build stage of both tools images to golang:1.27.4-trixie
by digest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Derek Hsu <derekhsu@hotmail.com>
@derekhsu
derekhsu merged commit 0ee1fce into feat/image-only-cli Nov 20, 2026
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant