From 71eb55b36abf8ab9c3eacea30bfc52af24f29e9c Mon Sep 17 00:00:00 2001 From: gab-arrobo Date: Wed, 20 Mar 2024 18:12:12 -0500 Subject: [PATCH] Add GHA for `hadolint` --- .github/workflows/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 79d8a3c..86413ac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,6 +32,22 @@ jobs: - name: Build Docker image run: make docker-build + hadolint: + name: hadolint + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Dockerfile linter + uses: hadolint/hadolint-action@v3.1.0 + # For now, ignoring: + # DL3008 warning: Pin versions in apt get install (e.g., apt-get install =); and + # DL3018 warning: Pin versions in apk add (e.g., apk add =) + with: + dockerfile: Dockerfile + ignore: DL3008,DL3018 + license-check: runs-on: ubuntu-latest steps: