Update main.yml

This commit is contained in:
Logan Marchione 2023-03-28 01:39:22 +00:00 committed by GitHub
parent f86a6d83f0
commit aa88052b5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,9 +13,25 @@ env:
REPO: docker-webdav-nginx REPO: docker-webdav-nginx
jobs: 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: ci:
name: Build and test name: Build and test
needs: lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -56,12 +72,6 @@ jobs:
exit-level: 'warn' exit-level: 'warn'
ignore: 'CIS-DI-0001' 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 - name: Container scan with Trivy
uses: aquasecurity/trivy-action@0.9.2 uses: aquasecurity/trivy-action@0.9.2
with: with: