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-28: none.
Tool: none found.
Reason: Searches show Trivy's newest release is still v0.76.2 with no Go 1.27.4 build, so the fixed release the issue waits for does not exist, and another scanner such as Grype cannot clear the vulnerable Trivy binary the devtools image and action pin.
Lacks:
- A Trivy release built with Go 1.26.11 or 1.27.4
- A devtools image that carries a fixed Trivy binary
- A scanner swap that removes the pinned Trivy binary
Proposed design
Problem statement
The image scan action pins Trivy v0.76.2 by tag and digest in both of its docker:// steps, and the runner, uv-seed and devcontainer images build FROM a dan-petty/devtools image that carries that Trivy. That release holds CVE-2026-97054 in the Go stdlib. No Trivy release built with Go 1.26.11 or 1.27.4 or later is verified. tools.lock and .trivyignore-tofu are gone, and the ignore entry that only the Trivy binary needed is gone: .trivyignore.yaml keeps only the kubectl-scoped entry, which the MCP server image scan needs. When the fixed Trivy release ships, this change moves the two docker:// steps and the devtools image pin to it, and proves that the image scans name no CVE-2026-97054.
Acceptance criteria
Requirement: Trivy image scan pin
Both docker:// steps of .github/actions/image-scan/action.yml SHALL name the same Trivy tag and digest of a release whose binary holds Go 1.26.11 or 1.27.4 or later.
Scenario: The pinned Trivy binary 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 /usr/local/binruns with the tag and digest that bothdocker://steps name - THEN The command exits 0 and its table names no CVE-2026-97054 finding
Requirement: Image scan action and rule-pack workflow validate
The image scan action and the rule-pack workflow SHALL pass the repository's action and workflow checks after the pins move.
Scenario: The action and the workflow validate with the new pins
- WHEN
uv run devops ci --check --only actionlint,zizmorruns after bothdocker://steps and.github/workflows/rule-pack.ymlname the new pins - THEN actionlint and zizmor exit 0 with no error for
.github/actions/image-scan/action.ymland.github/workflows/rule-pack.yml
Requirement: Devtools image Trivy version
The devtools image that Dockerfile, .devcontainer/Dockerfile and .github/workflows/rule-pack.yml name SHALL carry a Trivy release whose binary holds Go 1.26.11 or 1.27.4 or later.
Scenario: The devtools image names no CVE-2026-97054
- WHEN The live check
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock --entrypoint trivy ghcr.io/aquasecurity/trivy:<tag>@sha256:<digest> image --scanners vuln --severity HIGH,CRITICAL --ignore-unfixed ghcr.io/dan-petty/devtools:<tag>@sha256:<digest>runs with the Trivy and devtools tag and digest thatDockerfile,.devcontainer/Dockerfileand.github/workflows/rule-pack.ymlname - THEN The command exits 0 and its table names no CVE-2026-97054 finding
Requirement: Kubectl ignore entry
.trivyignore.yaml MUST keep the CVE-2026-97054 entry scoped to usr/local/bin/kubectl and pkg:golang/[email protected], and MUST hold no entry scoped to the Trivy binary.
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 returned none and named no tool; it considered anchore/grype. No open, maintained tool or library covers the need: the need is an upstream Trivy release built with Go 1.27.4 or later, and another scanner cannot clear the Trivy binary that the image scan action pins. The change builds no code of its own, so the written cost is 0 tokens to build, keep and fix, and 0 elapsed time.
Key questions
- Where does the repository pin the Trivy version that the image scan and the runner image use?: The image scan action pins
ghcr.io/aquasecurity/trivy:0.76.2@sha256:8f6bb947...in bothdocker://steps. The runner, uv-seed and devcontainer images build FROMghcr.io/dan-petty/devtools:1.3.4@sha256:b33bbd7a...inDockerfileand.devcontainer/Dockerfile, and the rule-pack job runs in the same image. This repository holds notools.lock: the devtools image installs each tool, and the project holds no tool version, digest or checksum. [sources: .github/actions/image-scan/action.yml:54, .github/actions/image-scan/action.yml:68, .github/workflows/rule-pack.yml:39, README.md:141] - 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", and SECURITY.md records that the devtools-based scans report only and stop 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 thegolang/[email protected]purl and the owner's 2026-12-15 date. [sources: .github/workflows/ci.yml:705, .trivyignore.yaml:52, .trivyignore.yaml:56, .trivyignore.yaml:58, SECURITY.md:121] - Does a Trivy release with the fix for CVE-2026-97054 exist now?: No release with the fix is verified. The image scan action still pins v0.76.2, and the web searches of this run returned no Trivy release page that names a newer tag or a Go 1.27.4 build. The change waits for the first release that holds Go 1.26.11 or 1.27.4 or later, which is the suspected block. [sources: .github/actions/image-scan/action.yml:54]
- Should the project wait for the upstream Trivy release or build Trivy from source with Go 1.27.4?: Take the upstream release on the day it is published. The project's Dependency Versions rule sets no minimum release age and takes a security fix on the day it ships, and SECURITY.md says to bump the pin when a released version holds the fix. Renovate opens that pull request at once. A local build is not a published release, has no publisher digest for the pin, and adds a Go build to keep. (best practice) [sources: CONTRIBUTING.md:35, SECURITY.md:82, .github/actions/image-scan/action.yml:52]
- Chosen: Take the upstream release on the day it is published. CONTRIBUTING.md (Dependency Versions) and SECURITY.md say to bump the pin when a released version holds the fix, with no minimum release age, and Renovate opens that pull request at once.
- Rejected: Build Trivy from source with Go 1.27.4. It is not a published release, the image pin has no publisher digest to verify, and the project would keep a Go build.
- 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 Trivy binary that the action pins.
- 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 tag and digest thatDockerfile,.devcontainer/Dockerfileand.github/workflows/rule-pack.ymlname. The action is the only place that pins a Trivy version. The devtools image supplies Trivy to the runner, uv-seed and devcontainer images, and Renovate's devtools group moves every reference to it in one pull request. (best practice) [sources: .github/actions/image-scan/action.yml:54, .github/actions/image-scan/action.yml:68, .github/workflows/rule-pack.yml:39, .github/renovate.json:107, docs/CLUSTER.md:78]- Chosen: Move the two
docker://steps and the devtools image tag and digest. These are the only Trivy sources: the action pins the scanner, and the devtools image supplies Trivy to the runner, uv-seed and devcontainer images; Renovate moves all of them in one devtools group. - Rejected: Add a
tools.lockentry. The tools lock is gone; the devtools image installs each tool, and the project holds no tool version, digest or checksum. - Rejected: Pin Trivy in
.devcontainer/Dockerfile. The file copies tools 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.
- Chosen: Move the two
- Should the change delete the CVE-2026-97054 entry from
.trivyignore.yaml?: No. The entry scopes tousr/local/bin/kubectlwith thegolang/[email protected]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:52, .trivyignore.yaml:56, .trivyignore.yaml:58, .github/workflows/ci.yml:671, SECURITY.md:82]- 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.
- Who moves the pins when a fixed Trivy release is published?: Renovate. The image scan action records that Renovate moves the tag and digest of both
docker://steps, and thedevtoolsgroup moves every reference to the devtools image,rule-pack.ymlincluded, in one pull request. CONTRIBUTING.md says Renovate opens the pull request for a security fix at once. [sources: .github/actions/image-scan/action.yml:52, .github/workflows/rule-pack.yml:32, .github/renovate.json:107, CONTRIBUTING.md:35]
Fit
Fits in one pull request.
Suspected block
A Trivy release built with Go 1.26.11 or 1.27.4 or later, and a dan-petty/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
devops-cli-service commentedon Nov 27, 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