Skip to content

feat(roadmap): hold the review scanners in the runner image #6263

Not planned

Description

@devops-cli-service

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_image runs.
  • THEN The command exits 0 and each of the five names is in RUNNER_TOOLS with source ToolSource.DEVTOOLS and none is in NOT_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_tools runs 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.py runs.
  • THEN The command exits 0 and the pluto entry holds the check command pluto version, not pluto --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 Image job of ci.yml builds the image and runs the Scan ... Image for Vulnerabilities step with .trivyignore and .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 review on 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_TOOLS entry with ToolSource.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.lock pin with devops install-tools. ADR 0005 records that the tools lock is gone. No tools.lock installs the review scanners.
  • What check command does the pluto entry use?: pluto version. Pluto has no --version flag. A --version check 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 Image job of ci.yml builds the image. It runs the Scan ... Image for Vulnerabilities step 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_TOOLS from 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.

Dependencies

#3827

Activity

  1. added
    type/feature
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 18, 2026
  2. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    ContributorAuthor
  3. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    ContributorAuthor

    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.

  4. dan-petty commented on Nov 19, 2026

    @dan-petty
    Owner

    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 outdated on 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.

  5. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    ContributorAuthor

    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.

  6. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  7. dan-petty commented on Nov 26, 2026

    @dan-petty
    Owner

    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 no tools.lock. The runner image scan reports findings and stops no build (SECURITY.md).

  8. removed
    status/new
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/roadmapsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions