Repository navigation
Description
Problem or Motivation
The runner image of #3072 cannot hold actionlint, shellcheck and Trivy. The image scan of ci.yml and release.yml (Trivy, HIGH,CRITICAL, ignore-unfixed) fails when the image holds them:
actionlint1.17.0 (the digest of the devcontainer) is built with Go 1.27.0. The scan reports four HIGH findings in the Go standard library (CVE-2026-111943, CVE-2026-78667, CVE-2026-78669, CVE-2026-97031). The fork has no newer release. Its nightly images are not releases.- Trivy 0.76.1, the newest release, holds go-jose 4.1.5 (CVE-2026-116587, fixed in 4.1.6).
shellcheckonly servesactionlint.
So a Job cannot run the actionlint row of devops ci or the IaC scan of Trivy, and the pull request checks them.
Proposed Solution & Architectural Design
When a release of actionlint is built with a fixed Go toolchain, and a release of Trivy holds go-jose 4.1.6 or later:
- Move the program from
NOT_IN_RUNNERtoRUNNER_TOOLSinsrc/devops_cli/roadmap/runner_tools.py. - Add it to the
runnerstage ofDockerfileagain (tools.lockfor Trivy, the digest of the devcontainer foractionlint). - Run the image scan on the built image, with no
.trivyignoreentry.
Target Subsystem
Runner image (Dockerfile, src/devops_cli/roadmap/runner_tools.py).
Existing Tool Considered
devops install-tools and the pinned image of the devcontainer. No tool is new.
Proposed design
Problem statement
The runner image leaves out actionlint, shellcheck and Trivy. The image scan fails on HIGH findings in the newest release of actionlint and Trivy. A Job cannot run the actionlint row or the Trivy IaC scan. The change adds the three tools back when an upstream release passes the scan.
Acceptance criteria
Requirement: Runner tool table
The runner tool table SHALL list actionlint, shellcheck and Trivy in RUNNER_TOOLS and SHALL not list them in NOT_IN_RUNNER.
Scenario: Table entries
- WHEN A test reads RUNNER_TOOLS and NOT_IN_RUNNER.
- THEN Each of the three names is in RUNNER_TOOLS and is absent from NOT_IN_RUNNER.
Requirement: Actionlint and Trivy install
The runner stage of the Dockerfile SHALL install actionlint from the pinned devcontainer digest and Trivy from tools.lock.
Scenario: Image build
- WHEN The runner stage builds.
- THEN The check of actionlint and the check of Trivy exit 0 and report their pinned versions.
Requirement: Shellcheck on PATH
The runner image SHALL hold shellcheck on PATH because actionlint runs it.
Scenario: Shellcheck check
- WHEN The runner image runs the shellcheck version command.
- THEN The command exits 0 and prints a version.
Requirement: Image scan
The image scan SHALL pass with no .trivyignore entry for actionlint, shellcheck or Trivy.
Scenario: HIGH and CRITICAL scan
- WHEN trivy image runs with --scanners vuln --severity HIGH,CRITICAL --ignore-unfixed --exit-code 1.
- THEN The command exits 0 and reports no finding for the three tools.
Requirement: Job rows
A runner Job SHALL run the actionlint row of devops ci and the Trivy IaC scan.
Scenario: Job check
- WHEN A Job runs the actionlint row and the IaC scan.
- THEN Both commands exit 0.
Existing Tool Considered
No alternatives check has run. The change adds existing tools: actionlint, shellcheck and Trivy. It builds no new code. actionlint lacks a release built with a fixed Go toolchain. Trivy lacks go-jose 4.1.6 or later. shellcheck only serves actionlint.
Key questions
- Which upstream release unblocks actionlint?: A release of actionlint built with a Go toolchain that fixes the four HIGH findings in Go standard library 1.27.0. [sources: src/devops_cli/roadmap/runner_tools.py, docs/ROADMAP_WORKFLOW.md]
- Which upstream release unblocks Trivy?: A release of Trivy that holds go-jose 4.1.6 or later. [sources: src/devops_cli/roadmap/runner_tools.py, docs/ROADMAP_WORKFLOW.md]
- Where does the runner image get actionlint?: Copy the binary from the digest-pinned devcontainer image. (best practice) [sources: src/devops_cli/roadmap/runner_tools.py]
- Chosen: Copy from the pinned devcontainer image. The devcontainer already pins the maintained fork by digest, and the image scan must pass on that binary.
- Rejected: Build actionlint from source. The build adds a Go toolchain and a build step to the runner image.
- Rejected: Download the newest release binary. The newest release holds the four HIGH findings.
- Where does the runner image get Trivy?: Install Trivy from tools.lock with devops install-tools. (best practice) [sources: src/devops_cli/roadmap/runner_tools.py]
- Chosen: Install from tools.lock with devops install-tools. The lock holds the version and checksum, and the image already links locked tools.
- Rejected: Install from apt. Debian gives no pinned Trivy version.
- Rejected: Download the release binary in the Dockerfile. The Dockerfile would hold a second pin and checksum.
- Does shellcheck need a separate entry in RUNNER_TOOLS?: Yes. Add shellcheck to RUNNER_TOOLS because actionlint runs it. (best practice) [sources: src/devops_cli/roadmap/runner_tools.py]
- Chosen: Add shellcheck to RUNNER_TOOLS. actionlint runs shellcheck when it is on PATH, and the image must hold every program that the gate needs.
- Rejected: Leave shellcheck out. actionlint then skips its shell script checks, and the Job result differs from the devcontainer.
Fit
Fits in one pull request.
Suspected block
Upstream releases of actionlint with a fixed Go toolchain and of Trivy with go-jose 4.1.6 or later.
Dependencies
None.
Alternatives check of 2026-11-05: none.
Tool: none found.
Activity
dan-petty commentedon Nov 1, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.runner, and .github/labels.yml declares no scope/runner label. Add the label to the file to give the scope to this item.The work is blocked on upstream releases and is one subset of a larger umbrella item.Restoring three tools in the runner image enables CI checks that are currently skipped.The steps are three small config edits: move a list entry, add a Dockerfile line, and run the existing scan.#3072 is the umbrella that requires the runner image to carry every tool; the candidate is the specific step of adding three tools once their upstream CVEs are fixed.feat(roadmap): add gate tools to the runner, one shell policy (#3111)
devops-cli-service commentedon Nov 2, 2026
Refine cannot set this item to Ready at ac16675 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
devops-cli-service commentedon Nov 5, 2026
Alternatives check: none
Tool: none found
Lacks:
Searches run:
Sources:
Checked on 2026-11-05. A person decides what this means for the item. The check changes no label and closes no issue.
[-]feat(runner): add actionlint, shellcheck and Trivy to the runner image when a release passes the image scan[/-][+]feat(runner): add actionlint, shellcheck, Trivy when scan passes[/+]dan-petty commentedon Nov 6, 2026
The job shortened the title of this item. The summary had 93 characters, and the limit is 60. The type and the scope stay.
feat(runner): add actionlint, shellcheck and Trivy to the runner image when a release passes the image scanfeat(runner): add actionlint, shellcheck, Trivy when scan passesdan-petty commentedon Nov 12, 2026
Evidence from the version baseline (#5065), 2026-11-12:
trivyreason insrc/devops_cli/roadmap/runner_tools.pynames go-jose 4.1.5 (CVE-2026-116587, fixed in 4.1.6) in Trivy 0.76.1.docker.io/kjanat/actionlint:1.17.1) is built with Go 1.27.3. Theactionlintreason names the Go standard library 1.27.0 (four CVEs) in actionlint 1.17.0.So the findings that keep both tools out of the runner image may be gone after #5065 merges. A runner-image scan with both tools added decides it. The reasons in
runner_tools.pyandk8s/README.mdstay until that scan.fix(runner): install promtool and trivy in separate calls (#3108)
devops-cli-service commentedon Nov 14, 2026
Released in v0.138.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.138.0
devops-cli-service commentedon Nov 14, 2026
Live since 2026-11-14 15:02 UTC
docs(openspec): plan #3827 Run review scanners in the runner pod (#6105)