Skip to content

v1.9.1

Choose a tag to compare

@github-actions github-actions released this 30 Nov 12:50
· 30 commits to main since this release
v1.9.1
18ee1e6

Changed

  • The OpenVEX document covers two more Expat CVEs. Docker Scout began
    reporting CVE-2026-137992 and CVE-2026-137951 against the libexpat in
    the distroless base, and Debian has no fixed package. Both are flaws in
    Expat's XML parser, and both are now marked not_affected: the Python
    interpreter links the library, but compose-lint never imports pyexpat,
    so no parser is created. The Docker smoke checked that inside the 1.9.0
    image on both platforms, and tests/smoke/assert_vex_claims.py now guards
    the two statements with the other Expat ones. The document carries 56
    base-image statements. Document version 8.
  • The CLI reference says how to get color under docker run. The image
    prints plain text unless the container has a terminal. The
    Color section now shows -t for a terminal session
    and FORCE_COLOR=1 as the alternative, and says what each does to output
    sent to a file or a pipe. The Docker Hub overview links to it.
  • The coverage-gap list names every cause of an unread .env. The entry
    in compatibility.md listed a .env that is not
    valid UTF-8, is over the read cap, or links out of reach. A .env the
    process may not read has been reported as the same gap all along, and one
    whose presence could not be told is since the fix below. Both are named
    now. No run changes: this is the list catching up with the tool.
  • Announced: a .env or an override that is a named pipe becomes a
    coverage gap in 1.10.0.
    Compose opens a named pipe where it expects the
    project's .env, an included file's own .env, or compose.override.yml,
    and deploys what it reads from it (measured on 5.5.0 and 5.8.1).
    compose-lint reads regular files only, and it treated the pipe as an absent
    file: a value or a key supplied through one deployed, the run passed, and
    nothing said the file had not been read. It is now an unread_input
    warning, on stderr and in JSON warnings[] and SARIF notifications, that
    names the file. It changes no exit code in this release. 1.10.0 makes it a
    coverage gap (exit 2), accepted by --allow-partial-coverage like any
    other (#1399).
  • Announced: a config that is a link leading nowhere becomes an error in
    1.10.0.
    A .compose-lint.yml or .compose-lint.yaml that is a symbolic
    link to itself, to a loop, or to a missing target was read as no config:
    the banner said config: none, and none of its suppressions or severities
    applied, with nothing saying so. It is now a Warning: on stderr that
    names the link, and it changes no exit code in this release. 1.10.0 makes
    it a config error (exit 2), as a config that is a directory or cannot be
    opened already is. --strict-config makes it one today
    (#1399).

Fixed

  • A path that cannot be examined is reported as that, not as an internal
    error.
    A directory the process may not search, a file name over 255
    bytes, or a NUL byte written in a path in the Compose file ended the run
    with a Python traceback and "This is a bug in compose-lint; please report
    it". The commonest case was the Docker image, which runs as UID 65532,
    against a project directory with mode 700. check, fix and init were
    all affected, through a file argument, -f, --config, init -o, a
    service's env_file:, an include: or extends: path, or the working
    directory itself. Each now prints one Error: line that names the path
    and the reason. The exit code was already 2 and still is, and the rest of
    a batch is still linted. No coverage-gap condition is added: a directory
    that cannot be searched for a Compose file is an error, as a file that
    cannot be read is. A config file that cannot be looked for is a config
    error and is not treated as absent.
    A working directory that cannot be named is one error too: one removed
    under the run, or on macOS one that may not be searched, where
    os.getcwd() fails and Linux's does not.