From aa88052b5a84e79a8d37b3acc337061cdb3b538d Mon Sep 17 00:00:00 2001 From: Logan Marchione Date: Tue, 28 Mar 2023 01:39:22 +0000 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dcc20a7..1a9051e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,9 +13,25 @@ env: REPO: docker-webdav-nginx jobs: + lint: + name: Lint + + runs-on: ubuntu-latest + + steps: + - name: Check out the codebase + uses: actions/checkout@v3 + + - name: Lint Dockerfile with Hadolint + uses: hadolint/hadolint-action@v3.1.0 + with: + failure-threshold: error + ignore: DL3008,DL3018 + ci: name: Build and test + needs: lint runs-on: ubuntu-latest steps: @@ -56,12 +72,6 @@ jobs: exit-level: 'warn' ignore: 'CIS-DI-0001' - - name: Container scan with hadolint - uses: hadolint/hadolint-action@v3.1.0 - with: - failure-threshold: error - ignore: DL3008,DL3018 - - name: Container scan with Trivy uses: aquasecurity/trivy-action@0.9.2 with: