Repository navigation
Description
Problem
The Trivy scan of the image jobs Service Image, Runner Image and MCP Server Image fails on each pull request that builds the images. It finds one HIGH vulnerability in usr/local/bin/gh:
CVE-2026-97054in the Gostdlibv1.27.3, statusfixed, fixed in 1.26.11 and 1.27.4. Title: "For HTTP/1 servers, when MaxBytesReader's limit is exceeded, ...".
The Dockerfile pins gh v2.103.3 (Dockerfile:44 and Dockerfile:47). That build uses Go 1.27.3.
Evidence: pull request #6351 at head edf9ef38b7d1, jobs 135275406750 (Service Image), 135275407074 (Runner Image) and 135275406930 (MCP Server Image), each with Total: 1 (HIGH: 1, CRITICAL: 0) and ##[error]Process completed with exit code 1. The change of #6351 touches no image file. The image jobs are not required checks, so the failure does not block a merge, but each pull request that changes src/ shows three red checks.
Expected behavior
- The image pins a
ghrelease that is built with Go 1.27.4 or later, and the three image jobs pass the Trivy scan. - If no such
ghrelease exists yet, the rule of SECURITY.md for a finding with no fix applies.
Proposed design
Problem statement
Update all five pinned tools, not only gh; the three image scans are the gate. The Service Image, Runner Image and MCP Server Image jobs fail the Trivy scan on CVE-2026-97054 in Go stdlib. The scan finds the flaw in promtool, tofu, trivy, actionlint and gh. The change updates each pin to a release built with Go 1.26.11 or 1.27.4 or later, or adds a dated Trivy ignore entry per SECURITY.md when no such release exists.
Acceptance criteria
Requirement: Runner image pins use a fixed Go build
For each vulnerable tool that has a release built with Go 1.26.11 or 1.27.4 or later, the Dockerfile MUST pin that release.
Scenario: Runner Image job scans the rebuilt image
- WHEN the Runner Image job builds the image from the updated Dockerfile and runs Trivy
- THEN the job passes and the scan reports no CVE-2026-97054 in gh, actionlint, trivy, tofu or promtool
Requirement: Service image has no CVE-2026-97054
The Service image MUST contain no HIGH or CRITICAL finding for CVE-2026-97054.
Scenario: Service Image job scans the rebuilt image
- WHEN the Service Image job builds the image and runs Trivy
- THEN the job passes and the scan reports no CVE-2026-97054
Requirement: MCP Server image has no CVE-2026-97054
The MCP Server image MUST contain no HIGH or CRITICAL finding for CVE-2026-97054.
Scenario: MCP Server Image job scans the rebuilt image
- WHEN the MCP Server Image job builds the image and runs Trivy
- THEN the job passes and the scan reports no CVE-2026-97054
Requirement: Unfixed tool has a dated suppression
When no release of a vulnerable tool is built with Go 1.26.11 or 1.27.4 or later, the project MUST add a dated Trivy ignore entry for CVE-2026-97054 on that tool path, with a reason and an expiry.
Scenario: No fixed release exists for one tool
- WHEN the Runner Image job runs Trivy with the repository .trivyignore.yaml
- THEN the job passes and the Trivy log shows the dated ignore entry for CVE-2026-97054 on that tool path
Existing Tool Considered
No alternatives check has run. Renovate is an open, maintained tool that watches the Dockerfile pins, but it does not show that a release uses a fixed Go build. The upstream releases of gh, actionlint, Trivy, OpenTofu and Prometheus cover the need; the repository builds no replacement. A tool with no fixed release gets a path-specific dated Trivy ignore entry per SECURITY.md.
Key questions
- Which pins cause the image scan failure?: The scan finds CVE-2026-97054 in five pinned tools: promtool 3.16.0, tofu 1.13.9, trivy 0.76.2, actionlint and gh. A new gh release alone does not clear the three image jobs. [sources: tests/invariants/test_runner_image.py]
- Which image jobs must pass?: The Service Image, Runner Image and MCP Server Image jobs must pass. The MCP Server image also reports Go 1.26.10. [sources: .github/workflows/ci.yml, tests/invariants/test_service_image.py, tests/invariants/test_mcp_server_image.py]
- How should the change clear the finding?: Update each pin to the latest stable release built with Go 1.26.11 or 1.27.4 or later. If no such release exists for a tool, add a path-specific dated Trivy ignore entry in .trivyignore.yaml with a reason and an expiry, per SECURITY.md. (best practice) [sources: SECURITY.md, .trivyignore.yaml]
- Chosen: Fixed upstream release, else dated ignore. Upstream releases add no project build code, and the dated ignore keeps the rule of SECURITY.md for a tool with no fix.
- Rejected: Build each tool from source. It adds a build step and maintenance cost that the upstream release avoids.
- Rejected: Blanket Trivy ignore for all five tools. It hides fixable findings and does not name the tool path.
- Rejected: Newest tag without a build check. The tag may still use Go 1.27.3 or Go 1.26.10.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 19, 2026
Three image jobs fail on every pull request that builds images, causing CI to fail.The failed run 135275406750 does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 with the label priority/p0-critical.Both bump the pinned gh to clear a HIGH CVE found by Trivy, but #3920 targets CVE-2026-78661 in golang.org/x/net while this candidate targets CVE-2026-97054 in Go stdlib.dan-petty commentedon Nov 19, 2026
The same scan on pull request #6333 (head
3ea6dfe9d, job 135279165850,Runner Image) findsCVE-2026-97054(Gostdlibv1.27.3) in five binaries, not only ingh:opt/devops-tools/tools/promtool/3.16.0/promtoolopt/devops-tools/tools/tofu/1.13.9/tofuopt/devops-tools/tools/trivy/0.76.2/trivyusr/local/bin/actionlintusr/local/bin/ghEach gives
Total: 1 (HIGH: 1, CRITICAL: 0). A newghrelease alone does not make the three image jobs pass: each of the five pins needs a build with Go 1.26.11 or 1.27.4, or the rule of SECURITY.md for a finding with no fix.dan-petty commentedon Nov 19, 2026
The same scan fails on pull request #6353 (head
86f22e869), which changes no image file. Jobs 135284917850 (Service Image), 135284918220 (Runner Image) and 135284918367 (MCP Server Image) each end withTotal: 1 (HIGH: 1, CRITICAL: 0)onCVE-2026-97054in the Gostdlib: v1.27.3 in the Service and Runner images, and v1.26.10 and v1.27.3 in the MCP Server image.devops-cli-service commentedon Nov 19, 2026
Waiting for the alternatives check to run. The next refine round looks at the item again after the check records a verdict.
dan-petty commentedon Nov 19, 2026
The same scan fails on pull request #6326 (head
c4115e6e2), which changes no image file: jobs 135291113295 (Service Image), 135291113169 (Runner Image) and 135291113083 (MCP Server Image), each onCVE-2026-97054in the Gostdlib. The binaries are the same as in the comments above (gh,actionlint,tofu,trivyand the others).devops-cli-service commentedon Nov 19, 2026
Released in v0.179.3: https://github.com/dan-petty/devops-cli/releases/tag/v0.179.3
devops-cli-service commentedon Nov 19, 2026
Live since 2026-11-19 05:06 UTC