Skip to content

fix(security): bump actionlint and drop the ignore #6367

Open

Description

@dan-petty

Update 2026-11-26 (infra move): the images no longer pin actionlint.

  • The runner image and the devcontainer take it from the dan-petty/devtools image, which still ships 1.17.1 built with Go 1.27.3.
  • Only the Run actionlint step of .github/workflows/ci.yml still pins kjanat/actionlint.
  • The runner image gets the fix with a devtools release.
  • ACTIONLINT_VERSION and .trivyignore-tofu do not exist.

Problem or Motivation

The runner and MCP server images hold actionlint from the pinned image docker.io/kjanat/actionlint:1.17.1 (usr/local/bin/actionlint). 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: v1.17.1 (published 2026-11-09) is the newest release of kjanat/actionlint, and no newer tag exists. On Docker Hub, the tags 1.17.1, 1.17 and latest hold the pinned digest of 2026-11-09; only nightly and branch tags are newer. Trivy v0.76.2 (trivy image) on the pinned digest reads Go 1.27.3 in usr/local/bin/actionlint. 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 kjanat/actionlint release holds Go 1.26.11 or 1.27.4 or later, bump the image pin (tag and digest) in .github/workflows/ci.yml. The runner image gets the fix with a dan-petty/devtools release.

Acceptance Criteria

  • The Trivy scans of the pinned CI actionlint image and of the runner image name no CVE-2026-97054 in actionlint.
  • No ignore file holds an entry that only actionlint needed.

Dependencies

Blocked on a kjanat/actionlint release that holds the fix.

Source: #6352

Proposed design

Problem statement

The Run actionlint step of .github/workflows/ci.yml:101 pins docker.io/kjanat/actionlint:1.17.1, whose Go stdlib 1.27.3 has CVE-2026-97054 (HIGH). The runner image and the devcontainer no longer pin that image: they take actionlint from ghcr.io/dan-petty/devtools:20261119, and the MCP server image copies only kubectl and helm from it. .trivyignore.yaml holds no actionlint entry; its CVE-2026-97054 entry is scoped to kubectl. The change bumps the CI step's tag and digest when a kjanat/actionlint release carries Go 1.26.11 or 1.27.4 or later, and deletes no ignore entry. Clearing the runner image's actionlint finding needs a new devtools image, so that part is deferred.

Acceptance criteria

Requirement: The CI step pins a fixed actionlint

The Run actionlint step of .github/workflows/ci.yml MUST pin a docker.io/kjanat/actionlint tag and digest whose Go stdlib is 1.26.11 or 1.27.4 or later.

Scenario: Trivy scan of the pinned actionlint image

  • WHEN The live check docker run --rm ghcr.io/aquasecurity/trivy:0.76.2@sha256:8f6bb947dbc528902e11f2f5be52f7b519f6a39d5d148f41166f2040499768fb image --scanners vuln --severity HIGH,CRITICAL --ignore-unfixed --exit-code 1 docker.io/kjanat/actionlint:<the tag and digest of the step> runs with no ignore file.
  • THEN The command exits 0 and its table names no CVE-2026-97054 in /usr/local/bin/actionlint.

Requirement: The changed workflow passes the workflow checks

.github/workflows/ci.yml MUST pass the actionlint and zizmor rows after the bump.

Scenario: Workflow checks pass

  • WHEN uv run devops ci --check --only actionlint,zizmor runs on the changed workflow.
  • THEN Both rows pass and the command exits 0.

Existing Tool Considered

No alternatives check has run. The open, maintained kjanat/actionlint fork covers the CI step's actionlint need (https://hub.docker.com/r/kjanat/actionlint, fetched 2026-11-22), and the ghcr.io/dan-petty/devtools image supplies actionlint to the runner image and the devcontainer. The fork lacks a release that carries Go 1.26.11 or 1.27.4 or later as of 2026-11-22: the newest release, 1.17.1 (2026-11-09), holds Go 1.27.3. The CI step cannot move until that release, and the devtools image cannot carry a fixed actionlint until then. The change builds no code: it waits for the release, then lets the Renovate group move the step's tag and digest.

Key questions

  • Which files hold the actionlint pin and version?: The only docker.io/kjanat/actionlint pin is the Run actionlint step of .github/workflows/ci.yml:101, at 1.17.1 with its digest; Renovate groups that image in .github/renovate.json:196-198. The runner image and the devcontainer take actionlint from ghcr.io/dan-petty/devtools:20261119 (Dockerfile:15, .devcontainer/Dockerfile:8), and RUNNER_TOOLS lists actionlint as a devtools tool (src/devops_cli/roadmap/runner_tools.py:152). The table holds no tool version (docs/CLUSTER.md:68), so ACTIONLINT_VERSION does not exist. The MCP server image copies only kubectl and helm from devtools (Dockerfile:169), so it holds no actionlint. .trivyignore.yaml:62 scopes its CVE-2026-97054 entry to usr/local/bin/kubectl; no actionlint entry exists. [sources: .github/workflows/ci.yml:101, .github/renovate.json:196, src/devops_cli/roadmap/runner_tools.py:152, .trivyignore.yaml:62, docs/CLUSTER.md:68]
  • Which kjanat/actionlint release carries Go 1.26.11 or 1.27.4 or later?: None as of 2026-11-22. The Docker Hub page fetched 2026-11-22 links v1.17.1 as the current release documentation, and no newer tag appears. Release 1.17.1 (2026-11-09) holds Go 1.27.3, which the Trivy image scan of the pinned digest reads. Go 1.27.4 and 1.26.11 are from 2026-11-10, after that release. The next release is the earliest candidate, and its tag is unknown. [sources: https://hub.docker.com/r/kjanat/actionlint, openspec/changes/archive/2026-11-19-6352-bump-go-tools-cve-2026-97054/proposal.md:34]
  • How does the change prove that the pinned actionlint image no longer carries CVE-2026-97054?: Scan the pinned image with Trivy and no ignore file, and let the Run actionlint step run it. The image holds the binary at /usr/local/bin/actionlint, and no ignore entry hides the finding, so a pass shows the fixed Go stdlib. (best practice) [sources: .github/actions/image-scan/action.yml:45, .github/workflows/ci.yml:101, SECURITY.md:81]
    • Chosen: Trivy image scan of the pinned image. It reads the same binary that the step runs, with no ignore file, so a pass shows the fixed Go stdlib.
    • Rejected: Trivy rootfs scan of the binary copied out of the image. It needs an extra copy step and reads the same binary.
    • Rejected: Pytest that reads the uses: line of ci.yml. A test asserts no value of a workflow.
  • Should the CI step wait for a kjanat/actionlint release or use another actionlint source?: Wait for the kjanat/actionlint release, and let the Renovate group move the step's tag and digest. The project keeps the CI step on the kjanat image in .github/renovate.json:196, while the runner image and the devcontainer take actionlint from the devtools image. Moving the step would contradict that recorded split and pull the 1.8 GB devtools image into Static Analysis on a cache miss, for a security bump that needs one line. (best practice) [sources: .github/renovate.json:196, docs/CLUSTER.md:68, https://hub.docker.com/r/kjanat/actionlint]
    • Chosen: Wait for the kjanat/actionlint release. The step is the one remaining pin, Renovate already groups it, and the bump is one line.
    • Rejected: Move the step to the devtools image's actionlint. It contradicts the split that .github/renovate.json:196 records and adds a 1.8 GB image pull to the job.
    • Rejected: Switch to rhysd/actionlint. The Docker Hub page names kjanat/actionlint the actively maintained fork.
    • Rejected: Build actionlint from source. It adds a Go toolchain and a build step to the job.
  • Does this change delete an ignore entry for CVE-2026-97054?: No. .trivyignore.yaml:62-67 scopes its CVE-2026-97054 entry to usr/local/bin/kubectl and stdlib@v1.26.10; kubectl 1.37.2 still needs it, and the owner extended the entry to 2026-12-15 (fix(security): bump kubectl and drop the MCP server Trivy ignores #6084). No actionlint entry exists to delete. [sources: .trivyignore.yaml:62, SECURITY.md:81]
  • Can this issue clear the actionlint finding in the runner image?: No. The runner image builds FROM ghcr.io/dan-petty/devtools:20261119, which supplies actionlint, and its scan is report-only (exit-code: "0"). The MCP server image copies only kubectl and helm, so it holds no actionlint. Clearing the runner image's finding waits on a devtools image built with a fixed actionlint, so it is deferred to a new issue. (best practice) [sources: .github/workflows/ci.yml:636, docs/CLUSTER.md:68, SECURITY.md:104]
    • Chosen: Defer the runner image to a new issue. The runner image gets actionlint from the devtools image, so the fix needs a new devtools image; this issue can only bump the ci.yml pin.
    • Rejected: Bump the devtools pin in this change. No devtools image with a fixed actionlint exists as of 2026-11-22.
    • Rejected: Add a path-specific actionlint ignore to .trivyignore.yaml. It hides the finding from code scanning instead of clearing it, and the issue asks to drop an ignore, not add one.

Fit

Fits in one pull request.

Suspected block

A kjanat/actionlint release that carries Go 1.26.11 or 1.27.4 or later; none exists as of 2026-11-22.

Dependencies

None.

Alternatives check of 2026-11-22: in-use.
The repository already uses this tool.
Tool: kjanat/actionlint (https://github.com/kjanat/actionlint), NOASSERTION, last activity 2026-11-21, maintained.
Reason: Searches found only the kjanat/actionlint fork, already pinned in the workflow: its newest release, 1.17.1, still holds Go 1.27.3, and upstream rhysd/actionlint's v1.7.12 is older, so no release carries the fixed stdlib yet.

Covers:

  • Docker Hub and GHCR images of actionlint for the CI step
  • Maintained fork with upstream checks plus policy checks
  • Tag and digest bump that the Renovate group already covers

Lacks:

  • Release built with Go 1.26.11 or 1.27.4 or later
  • Any tag newer than 1.17.1 as of 2026-11-22
  • Fixed actionlint in the devtools image the runner builds on

Activity

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

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 19, 2026
  4. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    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

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

    @devops-cli-service
    Contributor

    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

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

    @devops-cli-service
    Contributor

    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. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    Contributor

    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 (4)

    Tools considered:

    Searches run:

    • kjanat/actionlint releases Go stdlib fix, results: 5
    • actionlint docker image release Go 1.27.4, results: 5
    • actionlint GitHub Action workflow linter docker image, results: 5
    • rhysd/actionlint latest release, results: 5

    Sources:

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/p2-mediumscope/securitysource/agentstatus/newtype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions