Repository navigation
Description
Split from #3827.
Problem and why this part is deferred. devops review in the runner pod needs its scanner tools in the runner image. The pinned releases of four scanners bring fixed HIGH and CRITICAL findings in the Go libraries inside each binary, so the image scan fails. CI run 44240571785, jobs Runner Image and MCP Server Image, step Scan ... Image for Vulnerabilities (Trivy, HIGH and CRITICAL, ignore-unfixed) shows: gitleaks 8.30.1 with 38 findings (HIGH 37, CRITICAL 1); golangci-lint 1.64.8 with 28 findings (HIGH 27, CRITICAL 1); osv-scanner 2.6.0 with 3 findings (HIGH 3); pluto 5.24.4 with 3 findings (HIGH 3); semgrep 1.179.0 with no finding. The findings are in golang.org/x/crypto, golang.org/x/net, golang.org/x/text, klauspost/compress and the Go standard library 1.24. The fixes exist, but the pinned releases do not hold them. The image scan passes only with a newer release of each scanner, or with an owner decision to accept the findings in .trivyignore. A .trivyignore entry needs the owner. #3827 delivers the fail-closed behaviour, the spec delta, the ADR and the security text without the image part. A runner review therefore reports each review scanner as not installed until this item lands. ## Acceptance criteria. Each of semgrep, gitleaks, osv-scanner, golangci-lint and pluto is a pinned binary in tools.lock, has a devops install-tools line and a RUNNER_TOOLS entry, and is absent from NOT_IN_RUNNER. python -m devops_cli.roadmap.runner_tools passes in the built image. The Pluto check is pluto version, because Pluto has no --version flag. The Runner Image job of ci.yml exits 0: its Scan ... Image for Vulnerabilities step reports no finding for an added scanner, with the ignore files .trivyignore and .trivyignore-tofu, or the owner accepts the finding in .trivyignore. A test: in the runner profile, devops review runs on a sample diff and returns findings from the scanners. The change cites #3562 and #3108 and adds no tool that either adds.
Proposed design
Problem statement
devops review in a runner pod needs its scanner tools in the runner image. The runner image must hold the five review scanners from the devtools image. The pinned scanner releases carry HIGH and CRITICAL findings in their Go libraries, so the runner image scan fails. The change updates the devtools image to fixed scanner releases and keeps the runner tool table and the review check in step. The gitleaks finding waits on an owner decision or a newer release.
Acceptance criteria
Requirement: Review scanners in the runner tool table
Each of semgrep, gitleaks, osv-scanner, golangci-lint and pluto SHALL be a RUNNER_TOOLS entry from the devtools image and SHALL be absent from NOT_IN_RUNNER.
Scenario: Review scanners table test
- WHEN
uv run pytest tests/roadmap/test_roadmap_runner_tools.py::test_the_review_scanners_are_runner_tools_from_the_devtools_imageruns. - THEN The command exits 0 and each of the five names is in
RUNNER_TOOLSwith sourceToolSource.DEVTOOLSand none is inNOT_IN_RUNNER.
Requirement: Runner-tools check on the built image
The built runner image MUST pass the runner-tools check for each review scanner.
Scenario: Runner-tools check in the image
- WHEN
python -m devops_cli.roadmap.runner_toolsruns as the last step of the runner image build. - THEN The command exits 0 and reports no review scanner as missing.
Requirement: Pluto version command
The RUNNER_TOOLS entry for pluto MUST use pluto version as its check command.
Scenario: Pluto check command
- WHEN
uv run pytest tests/roadmap/test_roadmap_runner_tools.pyruns. - THEN The command exits 0 and the pluto entry holds the check command
pluto version, notpluto --version.
Requirement: Runner image vulnerability scan
The runner image MUST pass the Trivy HIGH and CRITICAL scan with no unaccepted finding for a review scanner.
Scenario: Runner Image job scan
- WHEN The
Runner Imagejob ofci.ymlbuilds the image and runs theScan ... Image for Vulnerabilitiesstep with.trivyignoreand.trivyignore-tofu. - THEN The step exits 0 and reports no HIGH or CRITICAL finding for semgrep, gitleaks, osv-scanner, golangci-lint or pluto.
Requirement: Review runs the review scanners
devops review in the runner image MUST run each review scanner on a sample diff.
Scenario: Sample diff review in the runner image
- WHEN The runner image runs
devops reviewon a sample diff of a test repository. - THEN The command exits 0 and its review session lists semgrep, gitleaks, osv-scanner, golangci-lint and pluto as tools that ran.
Existing Tool Considered
No alternatives check has run. The change uses the devtools image that the project already maintains and that installs semgrep, gitleaks, osv-scanner, golangci-lint and pluto. Trivy, already in the runner image, covers the HIGH and CRITICAL vulnerability scan. Trivy lacks a fix for a vulnerability inside a scanner binary. Only a newer devtools image or an owner-accepted .trivyignore entry supplies it. The change builds no code of its own.
Key questions
- Which source supplies the review scanner binaries in the runner image?: The devtools image. The runner image builds FROM the devtools image. Each scanner is a
RUNNER_TOOLSentry withToolSource.DEVTOOLS. The tools lock is gone. (best practice) [sources: docs/adr/0005-review-findings-come-from-tools-not-models.md, tests/roadmap/test_roadmap_runner_tools.py, src/devops_cli/roadmap/runner_tools.py:117]- Chosen: Devtools image digest. The runner image builds FROM the devtools image. The test asserts
ToolSource.DEVTOOLS. ADR 0005 records that the tools lock is gone. - Rejected:
tools.lockpin withdevops install-tools. ADR 0005 records that the tools lock is gone. Notools.lockinstalls the review scanners.
- Chosen: Devtools image digest. The runner image builds FROM the devtools image. The test asserts
- What check command does the pluto entry use?:
pluto version. Pluto has no--versionflag. A--versioncheck fails and the image build stops. [sources: src/devops_cli/roadmap/runner_tools.py:94, tests/roadmap/test_roadmap_runner_tools.py] - How does the change prove the runner image scan passes?: The
Runner Imagejob ofci.ymlbuilds the image. It runs theScan ... Image for Vulnerabilitiesstep with Trivy at HIGH and CRITICAL and--ignore-unfixed. The step exits 0 when no finding remains for a review scanner. [sources: .github/workflows/ci.yml] - Does the change add a new tool?: No. The five review scanners are already in
RUNNER_TOOLSfrom the devtools image. The change updates the devtools image and keeps the checks. It cites feat(roadmap): Add kubectl and kube-linter to runner tool catalog #3562 and feat(runner): add actionlint, shellcheck, Trivy when scan passes #3108 and adds no tool that either adds. [sources: tests/roadmap/test_roadmap_runner_tools.py, src/devops_cli/roadmap/runner_tools.py:117]
Fit
Fits in one pull request.
Suspected block
An owner decision to accept the gitleaks HIGH and CRITICAL findings in .trivyignore, or a gitleaks release newer than 8.30.1 that fixes them.
Activity
devops-cli-service commentedon Nov 18, 2026
Both target devops review in the runner; #3827 delivers the fail-closed behaviour and spec, while this item delivers the scanner binaries in the image.devops-cli-service commentedon Nov 19, 2026
Refine cannot set this item to Ready at 5e6822d while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
dan-petty commentedon Nov 19, 2026
Evidence for the runner gate (HIGH/CRITICAL,
--ignore-unfixed, exit code 1): Trivy 0.76.2 on 2026-11-19 finds CRITICAL CVE-2025-68121 (Go stdlib 1.24.11, fixed in 1.24.13) and 38 HIGH findings with a fix in gitleaks 8.30.1. 8.30.1 is the newest gitleaks release (mise outdatedon 2026-11-19). SECURITY.md does not let an agent ignore a CRITICAL finding, so gitleaks in the runner image needs an owner decision. Found in the scan of dan-petty/devtools#3.devops-cli-service commentedon Nov 19, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
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
dan-petty commentedon Nov 26, 2026
Closed: the work is done.
#6166 (ADR 0031): the runner image holds the five review scanners from the devtools image, and each one is in
RUNNER_TOOLS. There is notools.lock. The runner image scan reports findings and stops no build (SECURITY.md).