From 59c96bebe3f8f419e8ec364e8964c00dd91d9eba Mon Sep 17 00:00:00 2001 From: Michael Saki Date: Sun, 28 Apr 2024 14:15:32 -0500 Subject: [PATCH] Add hadolint-py to pre-commit hooks This is a Python package that provides a pip-installable hadolint binary. It makes it so hadolint can be run without needing to be installed on a user's system. --- .pre-commit-config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3cb1f85..66c9aad 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -196,6 +196,10 @@ repos: rev: v3.0.1 hooks: - id: docker-compose-check + - repo: https://github.com/AleksaC/hadolint-py + rev: v2.12.1b3 + hooks: + - id: hadolint # Packer hooks - repo: https://github.com/cisagov/pre-commit-packer