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

Alternatives check of 2026-11-28: in-use.
The repository already uses this tool.
Tool: kjanat/actionlint (https://github.com/kjanat/actionlint), NOASSERTION, last activity 2026-11-27, maintained.
Reason: Searches found only kjanat/actionlint, the actionlint image the CI step already pins, plus the older upstream rhysd/actionlint; no maintained image ships a fixed Go stdlib yet, so the bump waits on the next fork release.

Covers:

  • Static checks of workflow syntax, expressions, action inputs and shell scripts
  • Docker image bundles actionlint with ShellCheck and pyflakes
  • Maintained fork with policy checks, composite action validation and attested binaries

Lacks:

  • Newest release v1.17.1 holds Go 1.27.3, so CVE-2026-97054 remains
  • Runner image finding needs a devtools release, not this pin
  • No actionlint ignore entry exists, so the change drops none

Proposed design

Problem statement

.github/workflows/ci.yml:102 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 take actionlint from ghcr.io/dan-petty/devtools:1.3.4 (Dockerfile:16, .devcontainer/Dockerfile:10), and the MCP server image copies only gh, kubectl and helm from it, so it holds no actionlint. .trivyignore.yaml:52-58 scopes its CVE-2026-97054 entry to kubectl, and no actionlint entry exists to drop. The change moves the CI step to a release that carries Go 1.26.11 or 1.27.4 or later; the runner image's finding waits on a devtools release and is deferred.

Acceptance criteria

Requirement: The CI step pins a fixed actionlint

The Run actionlint step of .github/workflows/ci.yml SHALL 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 from an empty directory, so no ignore file applies, on the tag and digest that the step names.
  • 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

The alternatives check of 2026-11-22 records the verdict in-use for kjanat/actionlint (https://github.com/kjanat/actionlint), pinned as docker.io/kjanat/actionlint: the repository already uses it, and the block of that check names what the tool lacks. This change builds no code: it waits for the release that the block names, and then the Renovate group actionlint (.github/renovate.json:102-104) moves the tag and digest of the Run actionlint step.

Key questions

  • Which files pin actionlint, or hold its version?: The Run actionlint step of .github/workflows/ci.yml:102 is the only docker.io/kjanat/actionlint pin: tag 1.17.1 with digest sha256:c0a63b3e5c974c2466ead39404b70e448176beaff8c5ec7af0b2e96191aea661. The runner image builds FROM ghcr.io/dan-petty/devtools:1.3.4@sha256:b33bbd7ab7cf9b95c2827a3393bf997b278b5f458f3995d38dda92c789507b48 (Dockerfile:16), and the devcontainer pins the same image (.devcontainer/Dockerfile:10). RUNNER_TOOLS lists actionlint as a devtools tool (src/devops_cli/roadmap/runner_tools.py:155), and docs/CLUSTER.md:78 says the table holds no tool version, so no ACTIONLINT_VERSION exists. The MCP server image copies gh, kubectl and helm from the devtools image (Dockerfile:199, Dockerfile:216), so it holds no actionlint. .trivyignore.yaml:52-58 scopes its CVE-2026-97054 entry to usr/local/bin/kubectl and [email protected]; no actionlint entry exists. [sources: .github/workflows/ci.yml:102, src/devops_cli/roadmap/runner_tools.py:155, docs/CLUSTER.md:78, .trivyignore.yaml:52]
  • Which kjanat/actionlint release carries Go 1.26.11 or 1.27.4 or later?: None as of 2026-11-27. The Docker Hub page fetched 2026-11-27 (updated about 5 hours before the fetch) still points its documentation links at v1.17.1 and names no newer tag. Release 1.17.1 (2026-11-09) holds Go 1.27.3, which the Trivy image scan of the pinned digest reads, and 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:32, openspec/changes/archive/2026-11-19-6352-bump-go-tools-cve-2026-97054/proposal.md:34]
  • Does an ignore file hold an entry that only actionlint needed?: No. .trivyignore.yaml:52-58 holds the only CVE-2026-97054 entry, scoped to usr/local/bin/kubectl and [email protected]; kubectl 1.37.2 still needs it, and the owner extended it to 2026-12-15 (fix(security): bump kubectl and drop the MCP server Trivy ignores #6084). No actionlint entry exists, so the change deletes none. SECURITY.md:78-85 says how a finding with no fix gets such an entry. [sources: .trivyignore.yaml:52, .trivyignore.yaml:57, SECURITY.md:78, SECURITY.md:85]
  • How does the change prove that the pinned actionlint image no longer carries CVE-2026-97054?: Run the Trivy image scan of the pinned tag and digest from an empty directory, with no ignore file. 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. The image scan action runs the same Trivy image at .github/actions/image-scan/action.yml:54. (best practice) [sources: .github/actions/image-scan/action.yml:54, .github/workflows/ci.yml:102, SECURITY.md:85]
    • Chosen: Trivy image scan of the pinned tag and digest, with no ignore file. It reads the same binary that the step runs, from the image that the step pins, and 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: A pytest test 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 take actionlint from another source?: Wait for the kjanat/actionlint release, and let the Renovate actionlint group move the step's tag and digest. The step is the only remaining pin, .github/renovate.json:102-104 groups it, SECURITY.md:82 says to bump the pin on the day that a fix is published, and the comment above the step (.github/workflows/ci.yml:98-100) records that the runner image and devcontainer take actionlint from devtools while this step stays on the fork. (best practice) [sources: .github/renovate.json:102, .github/workflows/ci.yml:98, SECURITY.md:82, https://hub.docker.com/r/kjanat/actionlint, openspec/changes/archive/2026-10-29-1119-actionlint-docker-image/design.md:11]
    • Chosen: Wait for the kjanat/actionlint release, and let Renovate move the pin. The step is the only remaining pin, .github/renovate.json:102-104 groups it, and SECURITY.md:82 says to bump the pin on the day that a fix is published.
    • Rejected: Move the step to the actionlint of the devtools image. It contradicts the split that .github/workflows/ci.yml:98-100 and .github/renovate.json:102 record, and it pulls the 1.8 GB devtools image into Static Analysis on a cache miss (docs/CLUSTER.md:78).
    • Rejected: Switch to rhysd/actionlint. The alternatives check of 2026-11-22 found its newest release, v1.7.12, older, and the project replaced the stalled actionlint-py wrapper of that upstream with this fork in chore(deps): the workflow linter comes from a maintained source that knows current runner labels, replacing the stalled actionlint #1119 (openspec/changes/archive/2026-10-29-1119-actionlint-docker-image/design.md:11).
    • Rejected: Build actionlint from source in the job. It adds a Go toolchain and a build step to the job.
  • Can this issue clear the actionlint finding in the runner image?: No. The runner image builds FROM ghcr.io/dan-petty/devtools:1.3.4 (Dockerfile:16), which supplies actionlint (docs/CLUSTER.md:78), and its scan is report-only (exit-code: "0", .github/workflows/ci.yml:702-705). The devcontainer takes the same image (.devcontainer/Dockerfile:10). Clearing the finding needs a devtools release that ships an actionlint built with Go 1.26.11 or 1.27.4 or later, so the part is deferred to a new issue. (best practice) [sources: .github/workflows/ci.yml:702, docs/CLUSTER.md:78]
    • Chosen: Defer the runner image to a new issue. The runner image gets actionlint from the devtools image, so its fix needs a devtools release; this issue moves only the ci.yml pin.
    • Rejected: Bump the devtools pin in this change. This repository does not build the devtools image; Renovate moves its pin when a release lands (docs/CLUSTER.md:78), so the bump follows that release.
    • Rejected: Add a path-scoped actionlint entry 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 (newest 1.17.1, 2026-11-09, holds Go 1.27.3; Docker Hub named no newer tag on 2026-11-27), and a dan-petty/devtools release whose actionlint carries the same fix for the runner image.

Dependencies

None.

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:

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

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