yamllint — YAML linter rebased on Red Hat Hardened Images
718
yamllint checks YAML files for syntax errors, key duplication, line length, trailing spaces, indentation, and other style and correctness issues. It is widely used as the YAML validation layer in Ansible, Kubernetes, and CI pipeline toolchains.
This image installs yamllint and its dependencies (pathspec, PyYAML) offline from a hash-pinned wheelhouse using Red Hat Hardened Image Python 3.13 layers. The built image is cosign-signed with a CycloneDX SBOM and SLSA Level 3 provenance attestation attached.
Note: yamllint's OpenSSF Scorecard is 4.9/10 (threshold is 5.0). The low score reflects a single-maintainer project without fuzzing or signed releases — not abandonment. It is widely deployed and actively maintained. Exception documented in build.yml.
# Lint a YAML file
podman run --rm -v "$(pwd):/work:ro,Z" yamllint:<version>-rhhi /work/file.yml
# Parsable output for machine consumption
podman run --rm -v "$(pwd):/work:ro,Z" yamllint:<version>-rhhi -f parsable /work/file.yml
# Use relaxed config
podman run --rm -v "$(pwd):/work:ro,Z" yamllint:<version>-rhhi -d relaxed /work/file.yml
registry.access.redhat.com/hi/python:3.13-builder (build) and
hi/python:3.13 (runtime) — Red Hat HardenedContent type
Image
Digest
sha256:1be1ffd64…
Size
37.4 MB
Last updated
4 months ago
docker pull timothyswan/yamllint:1.38.0-rhhi