Skip to content

v1.9.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 03:16
· 45 commits to main since this release
v1.9.0
314ab3e

Added

  • A guide to linting at edit time with a coding agent hook.
    docs/agent-hook.md has a hook script and the
    Claude Code settings that run compose-lint check after each edit to a
    Compose file and hand the findings back to the agent. It covers the
    threshold, why exit 1 and exit 2 get different instructions, and what to
    expect. Tested with Claude Code 2.1.332.
  • A MegaLinter plugin. MegaLinter can now run compose-lint as an
    external plugin: one PLUGINS line in .mega-linter.yml naming the
    descriptor in mega-linter-plugin-compose-lint/ at a release tag. The
    descriptor installs that release in its own virtual environment, fails
    the run on high and critical findings, writes SARIF when MegaLinter's
    SARIF reporter is on, and explains a coverage gap when one stops the
    run. docs/megalinter.md has the line to add and
    what a run does. Tested with MegaLinter 10.2.0.

Changed

  • CL-0026 names only the limit that is missing. A service that set a
    memory limit and no CPU limit was told "Docker imposes neither by
    default" and to "bound both", and the same the other way round. The
    message and the fix now speak of the one missing limit: "Docker imposes
    none by default", the one key to add, and the one reservation key that
    is not a limit. A service with neither limit reads as before. Which
    services the rule reports is unchanged.
  • The image is built with an SBOM attestation for Docker Hub. Docker
    Hub showed "None found" under Vulnerabilities for 1.8.1 and 1.8.2 while
    the Scout CLI reported 60 or more CVEs on the same digests. Those images
    had no build-time SBOM, so Hub analysed them itself. The release build
    now asks BuildKit for one, with the scanner image pinned. The SBOM
    attested with cosign is unchanged and is still the one
    docs/verifying.md verifies. Whether Hub's numbers
    then match a scan is checked on the first release that has it.
  • The verification guide says what an image scan reports. A new section
    in docs/verifying.md separates the CVEs the OpenVEX
    document marks not_affected from the three findings that stay open
    because no fix exists: CVE-2019-1010022, CVE-2019-1010024 and
    CVE-2019-1010025, mitigation-bypass reports against glibc that upstream
    does not treat as security bugs and Debian lists as unfixed. It says why
    they carry no VEX statement. The README's security posture section now
    describes the document's full scope, not pip alone, and links there.
  • The verification guide shows how to apply the OpenVEX document in a
    scan.
    No scanner applies it by default. docs/verifying.md
    now has the Trivy option that finds the attested document, and the
    commands that extract it for Grype and Docker Scout, which do not look
    for it.
  • An image CVE with no fix now gets a decision. The daily vulnerability
    report scanned the published image for fixable CVEs only, so one with no
    fix became a code-scanning alert and reached nobody. It now also scans
    without that filter, with the OpenVEX document applied, and compares the
    result with the document and with a new list,
    .vex/open-findings.json, of findings left open because no fix exists
    and no justification is true of them. A finding in neither is raised in
    the rolling issue once it is 14 days past publication and a second scan
    reports it too. An entry in the list that has gained a fix or a statement,
    or that both scans have dropped, is raised as stale. A test holds the
    list, the statement counts and the section in
    docs/verifying.md together.
  • The tool comparison leads with the run built from the OWASP cheat sheet.
    docs/compare.md showed the fixture built from
    compose-lint's own rules first, where compose-lint scores 16 of 16. That
    run now comes last and opens by saying a full score on it only shows that
    those rules fire. Table cells are words (Yes, Missed, No rule, Base only)
    in place of symbols, and scripts/compare/score.py prints the same
    words. The page says who ran the tools, gives counts where it ranked
    them, and scopes "only" and "no tool" to the tools that were run. A
    Semgrep fix it pointed to was withdrawn by its author, and the page now
    says so.
  • The tool comparison was rerun on current versions. The three runs in
    docs/compare.md were repeated on 2026-11-28 with
    compose-lint 1.8.2, Semgrep 1.187.0 and Checkov 3.4.11. The other five
    tools had no newer release. Every cell came out the same as on
    2026-11-15.
  • The published image moves to a newer distroless base.
    gcr.io/distroless/python3-debian13:nonroot is repinned from
    sha256:e36c26ad… to sha256:72de1dda…, picking up the base image's own
    updates.