Repository navigation
Description
Update 2026-11-26 (infra move): Trivy no longer comes from tools.lock.
tools.lock and .trivyignore-tofu are gone, and no ignore entry names the Trivy binary. The MCP server image holds no Trivy. The runner image gets it from dan-petty/devtools, and its scan only reports. What is left: move the pins of the image-scan action and the devtools image when a fixed release exists.
Problem or Motivation
The runner and MCP server images hold the pinned Trivy v0.76.2 (opt/devops-tools/tools/trivy/0.76.2/trivy). The Trivy scan of both images names one HIGH finding in it: CVE-2026-97054 in the Go stdlib v1.27.3, fixed in 1.26.11 and 1.27.4.
Read on 2026-11-19: v0.76.2 (published 2026-11-05) is the newest Trivy release, and no newer tag exists. Trivy v0.76.2 (trivy rootfs) on the binary of the linux-amd64 archive, whose SHA-256 agrees with tools.lock, reads Go 1.27.3 and x/net v0.62.0. Go 1.27.4 and 1.26.11 are from 2026-11-10, after this release. So .trivyignore-tofu holds a temporary entry for CVE-2026-97054 (SECURITY.md, "A Finding with No Fix"). The entry matches the ID in every binary of the image, because the plain ignore format has no path field.
Proposed Solution & Architectural Design
When a Trivy release holds Go 1.26.11 or 1.27.4 or later, move the two docker:// Trivy pins of .github/actions/image-scan/action.yml, and take the dan-petty/devtools image that holds that release (Dockerfile, .devcontainer/Dockerfile).
Acceptance Criteria
- The Trivy scan of the runner and MCP server images names no finding in the Trivy binary.
- No ignore file holds an entry that only the Trivy binary needed.
Dependencies
Blocked on a Trivy release that holds the fix.
Source: #6352
Alternatives check of 2026-11-19: none.
Tool: none found.
Reason: Repository facts and searches show aquasecurity/trivy's newest release is still v0.76.2, so no build carries Go 1.27.4; Grype and other scanners would only replace the pinned scanner, which the design rejected, and cannot clear Trivy's own binary.
Lacks:
- A Trivy release built with Go 1.27.4 or later
- A scanner pin that clears CVE-2026-97054 in the image
- An ignore entry that only the Trivy binary needed
Proposed design
Problem statement
The image scan action pins Trivy v0.76.2 by tag and digest. That release carries CVE-2026-97054. No Trivy release with the fix is verified at the checked commit. The runner image takes Trivy from the devtools image, and the MCP server image holds no Trivy. The change moves both docker:// steps and the devtools image digest to the first fixed Trivy release. It keeps the .trivyignore.yaml entry that kubectl needs.
Acceptance criteria
Requirement: Trivy scan image pin
Both docker:// steps of .github/actions/image-scan/action.yml SHALL name the same tag and digest of a Trivy release that holds the fix for CVE-2026-97054.
Scenario: The pinned Trivy image holds no CVE-2026-97054
- WHEN the live check
docker run --rm --entrypoint trivy ghcr.io/aquasecurity/trivy:<tag>@sha256:<digest> rootfs --scanners vuln --severity HIGH,CRITICAL --ignore-unfixed --exit-code 1 /usr/local/binruns with the tag and digest that both steps name - THEN it exits 0 and its table names no CVE-2026-97054 finding
Requirement: Image scan action validates
The image scan action file SHALL pass the repository's workflow and action checks after both docker:// steps name the new Trivy tag and digest.
Scenario: The action file validates with the new pin
- WHEN
uv run devops ci --check --only actionlint,zizmorruns after bothdocker://steps name the new Trivy tag and digest - THEN actionlint and zizmor exit 0 with no error for
.github/actions/image-scan/action.yml
Requirement: Devtools image Trivy version
The devtools image that Dockerfile and .devcontainer/Dockerfile pin SHALL carry a Trivy release that holds the fix for CVE-2026-97054.
Scenario: The devtools image scans clean for Trivy
- WHEN the live check
docker run --rm --entrypoint trivy ghcr.io/dan-petty/devtools:<tag>@sha256:<digest> rootfs --scanners vuln --severity HIGH,CRITICAL --ignore-unfixed --exit-code 1 /opt/devops-tools/tools/trivyruns with the tag and digest that both Dockerfiles pin - THEN it exits 0 and its table names no CVE-2026-97054 finding
Requirement: Ignore entry kept for kubectl
.trivyignore.yaml MUST keep the CVE-2026-97054 entry that /usr/local/bin/kubectl needs while kubectl v1.37.2 holds Go 1.26.10, and MUST hold no entry that the Trivy binary alone needs.
Scenario: The MCP server image scans clean with the kubectl entry
- WHEN the live check
docker run --rm --entrypoint trivy -v "$PWD:/work" -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/aquasecurity/trivy:<tag>@sha256:<digest> image --scanners vuln --severity HIGH,CRITICAL --ignore-unfixed --ignorefile /work/.trivyignore.yaml --exit-code 1 devops-cli-mcp-server:localruns with the tag and digest that the action pins - THEN the command exits 0 and its table names no CVE-2026-97054 finding
Existing Tool Considered
The alternatives check of 2026-11-19 in the issue body recorded the verdict none and named no replacement tool. No open, maintained tool or library covers the need. The need is a Trivy release built with Go 1.27.4 or later, and no such release exists. Another scanner cannot clear the pinned Trivy binary. The change builds no code of its own. It moves the existing tag and digest and takes the devtools image that carries the fixed Trivy. The written cost of building is zero because no code is built.
Key questions
- Which Trivy release holds the fix for CVE-2026-97054?: No release with the fix is verified at the checked commit. The alternatives check of 2026-11-19 records v0.76.2 as the newest release, built with Go 1.27.3. Take the tag and digest of the first release whose binary reports Go 1.27.4 or later. Put the same pair in both
docker://steps. [sources: .github/actions/image-scan/action.yml:45] - Where does the repository pin the Trivy version that the image scans and the runner image use?: The image scan action pins
ghcr.io/aquasecurity/trivy:0.76.2@sha256:...in bothdocker://steps. The runner and devcontainer images get Trivy from the devtools image, whose tag and digestDockerfileand.devcontainer/Dockerfilepin. This repository holds notools.lock: the devtools image installs each tool. [sources: .github/actions/image-scan/action.yml:45, .github/actions/image-scan/action.yml:58, docs/adr/0005-review-findings-come-from-tools-not-models.md] - Which images still carry the Trivy binary, and does an image scan fail on it?: The runner image builds FROM the devtools image and holds Trivy. Its scan runs with
exit-code: "0", so a finding in the tool binaries goes to code scanning and stops no build. The MCP server image copies only kubectl and helm from the devtools image, so it holds no Trivy..trivyignore.yamlscopes CVE-2026-97054 tousr/local/bin/kubectlwith the stdlib v1.26.10 purl and the owner's 2026-12-15 date. [sources: .github/workflows/ci.yml:630, .trivyignore.yaml:62, .trivyignore.yaml:67, SECURITY.md:81] - Should the project wait for an upstream Trivy release or build Trivy from source with Go 1.27.4?: Wait for the upstream release. The repository takes release images by tag and digest. A local build has no publisher digest. The bump changes the tag and digest only. (best practice) [sources: .github/actions/image-scan/action.yml:45, SECURITY.md:78]
- Chosen: Wait for the upstream release. The image is pinned by tag and digest, and a local build has no publisher digest to check.
- Rejected: Build Trivy from source with Go 1.27.4. It adds a Go build to keep and has no publisher digest.
- Rejected: Replace Trivy with another scanner. Trivy is the scanner that the image scan action and SECURITY.md use, and another scanner cannot clear the pinned scanner's binary.
- Where should the Trivy bump land in this repository?: In the two
docker://steps of.github/actions/image-scan/action.yml, and in the devtools image digest thatDockerfileand.devcontainer/Dockerfilepin. The action is the only place that pins a Trivy version. The devtools image supplies Trivy to the runner and devcontainer images. (best practice) [sources: .github/actions/image-scan/action.yml:45]- Chosen: Move the scan action tag and digest and take the devtools image that carries the fixed Trivy. These are the only two Trivy sources: the scan action pins the scanner, and the devtools digest supplies the runner and devcontainer Trivy.
- Rejected: Add a
tools.lockentry. The tools lock is gone; the devtools image installs each tool. - Rejected: Pin Trivy in
.devcontainer/Dockerfile. The file copies Trivy from the devtools image and pins no tool version. - Rejected: Build Trivy in the image. It adds a Go build to keep and has no publisher digest.
- Should the change delete the CVE-2026-97054 entry from
.trivyignore.yaml?: No. The entry scopes tousr/local/bin/kubectlwith the stdlib v1.26.10 purl and the owner's 2026-12-15 date, and kubectl v1.37.2 still holds Go 1.26.10. The MCP server image scan gates with exit code 1, so deleting the entry would fail it. The entry that only the Trivy binary needed is already gone. The kubectl entry leaves with the kubectl bump (fix(security): bump kubectl and drop the MCP server Trivy ignores #6084). (best practice) [sources: .trivyignore.yaml:62, .trivyignore.yaml:67, .github/workflows/ci.yml:724, SECURITY.md:81]- Chosen: Keep the kubectl entry with its owner date. kubectl v1.37.2 holds Go 1.26.10, the entry is scoped by path and purl, and the MCP server image scan gates on it.
- Rejected: Delete the entry with the Trivy bump. The MCP server image scan would fail on kubectl until a fixed kubectl release, tracked by fix(security): bump kubectl and drop the MCP server Trivy ignores #6084.
- Rejected: Add a Trivy-specific entry. The scanned images hold no Trivy binary that needs it, and the runner scan is report-only.
Fit
Fits in one pull request.
Suspected block
A Trivy release built with Go 1.27.4 or later, and the devtools image build that installs it.
Dependencies
None.
Activity
dan-petty commentedon Nov 19, 2026
Both bump a pinned tool and drop its trivyignore entry, but 5866 targets OpenTofu while the candidate targets Trivy.ci: scan the images when only .trivyignore-tofu changes
fix(security): bump gh and ignore CVE-2026-97054 in unfixed tools (#6370
devops-cli-service commentedon Nov 19, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 19, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (5)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 21, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 22, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence