Skip to content

feat(runner): add actionlint, shellcheck, Trivy when scan passes #3108

Closed

Description

@dan-petty

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:

  • actionlint 1.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).
  • shellcheck only serves actionlint.

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:

  1. Move the program from NOT_IN_RUNNER to RUNNER_TOOLS in src/devops_cli/roadmap/runner_tools.py.
  2. Add it to the runner stage of Dockerfile again (tools.lock for Trivy, the digest of the devcontainer for actionlint).
  3. Run the image scan on the built image, with no .trivyignore entry.

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

  1. added
    source/agent
    type/feature
    status/new
    value/medium
    effort/low
    on Nov 1, 2026
  2. dan-petty commented on Nov 1, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: none. The title has the scope runner, and .github/labels.yml declares no scope/runner label. Add the label to the file to give the scope to this item.
    • Priority: P3-Low. The work is blocked on upstream releases and is one subset of a larger umbrella item.
    • Value: Medium. Restoring three tools in the runner image enables CI checks that are currently skipped.
    • Effort: Low. The steps are three small config edits: move a list entry, add a Dockerfile line, and run the existing scan.
    • Related: feat(runner): the runner image carries every development tool, and the shell policy is one table #3072, which asks for a different change. #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.
  3. added
    priority/p3-low
    on Nov 1, 2026
  4. devops-cli-service commented on Nov 2, 2026

    @devops-cli-service
    Contributor

    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.

    • Upstream releases of actionlint with a fixed Go toolchain and of Trivy with go-jose 4.1.6 or later.
  5. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    Contributor

    Alternatives check: none

    Tool: none found

    Lacks:

    • An actionlint release built with a Go toolchain that fixes the four HIGH Go standard library findings: the maintained fork's latest release is still v1.17.0, the same build the scan fails on.
    • A Trivy release holding go-jose 4.1.6 or later: the latest release is v0.76.1, which embeds go-jose 4.1.5 and triggers CVE-2026-116587.
    • The requested change is internal to the project (move the three names from NOT_IN_RUNNER to RUNNER_TOOLS, add the Dockerfile lines, rerun the image scan); no external tool or library provides it, and the issue itself states no tool is new.

    Searches run:

    • actionlint release built with newer Go toolchain CVE Go standard library
    • Trivy release go-jose 4.1.6 CVE fix
    • actionlint 1.17.0 fork devcontainer digest release

    Sources:

    Checked on 2026-11-05. A person decides what this means for the item. The check changes no label and closes no issue.

  6. changed the title [-]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[/+] on Nov 6, 2026
  7. dan-petty commented on Nov 6, 2026

    @dan-petty
    OwnerAuthor

    The job shortened the title of this item. The summary had 93 characters, and the limit is 60. The type and the scope stay.

    • Before: feat(runner): add actionlint, shellcheck and Trivy to the runner image when a release passes the image scan
    • After: feat(runner): add actionlint, shellcheck, Trivy when scan passes
    • Source of the summary: the background model
  8. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    Evidence from the version baseline (#5065), 2026-11-12:

    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.py and k8s/README.md stay until that scan.

  9. added
    status/in-progress
    and removed
    status/new
    on Nov 14, 2026
  10. added
    status/in-review
    and removed
    status/in-progress
    on Nov 14, 2026
  11. removed
    status/in-review
    on Nov 14, 2026
  12. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-14 15:02 UTC

  13. added a commit that references this issue on Nov 17, 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/lowpriority/p3-lowsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions