Update main.yml
This commit is contained in:
parent
f86a6d83f0
commit
aa88052b5a
22
.github/workflows/main.yml
vendored
22
.github/workflows/main.yml
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user