From 04980380f36c1e2b997bee0c682cc9a79a6bf5a4 Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Wed, 2 Aug 2023 18:58:16 +0530 Subject: [PATCH] fix : container_quality_dockerfile_lint Signed-off-by: Shubham Gupta --- .github/workflows/operator-ci.yaml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/operator-ci.yaml b/.github/workflows/operator-ci.yaml index 34d2de477..1867e5938 100644 --- a/.github/workflows/operator-ci.yaml +++ b/.github/workflows/operator-ci.yaml @@ -66,21 +66,14 @@ jobs: needs: [gofmt, govet] runs-on: ubuntu-20.04 steps: - - name: Executing dockerlinter - run: | - #!/bin/bash - download_hadolint() { - wget https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64 - chmod +x hadolint-Linux-x86_64 - } - execute_hadolint() { - ./hadolint-Linux-x86_64 Dockerfile --ignore DL3007 --ignore DL3018 - } - main() { - download_hadolint - execute_hadolint - } - main + - name: Checkout code + uses: actions/checkout@v3 + + - name: Execute dockerlinter + uses: hadolint/hadolint-action@v3.1.0 + with: + dockerfile: Dockerfile + ignore: DL3007,DL3018 build_go_binary: needs: [code_quality_golang_ci_lint]