From 26edc4deaf9eed644f8d18a598649917e73c9985 Mon Sep 17 00:00:00 2001 From: gab-arrobo Date: Wed, 20 Mar 2024 18:27:19 -0500 Subject: [PATCH] Add GHA for `hadolint` --- .github/workflows/master.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index cec1b28..ed8538b 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -1,5 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # Copyright 2023 Canonical Ltd. +# Copyright 2024 Intel Corporation name: Master workflow @@ -51,6 +52,22 @@ jobs: version: latest args: -v --config ./.golangci.yml + 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: