Remove hadolint when build & push

This commit is contained in:
mjanez 2023-10-02 10:03:47 +02:00
parent 712abb16b2
commit 5de535d018
2 changed files with 1 additions and 5 deletions

View File

@ -61,11 +61,6 @@ jobs:
context: ${{ env.CONTEXT }} context: ${{ env.CONTEXT }}
file: ${{ env.CONTEXT }}${{ env.DOCKERFILE_PATH }}/${{ env.DOCKERFILE }} file: ${{ env.CONTEXT }}${{ env.DOCKERFILE_PATH }}/${{ env.DOCKERFILE }}
- name: Linting Dockerfile with hadolint in GH Actions
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: ${{ env.CONTEXT }}${{ env.DOCKERFILE_PATH }}/${{ env.DOCKERFILE }}
- name: Run Trivy container image vulnerability scanner - name: Run Trivy container image vulnerability scanner
uses: aquasecurity/trivy-action@0.12.0 uses: aquasecurity/trivy-action@0.12.0
with: with:

View File

@ -55,6 +55,7 @@ jobs:
uses: hadolint/hadolint-action@v3.1.0 uses: hadolint/hadolint-action@v3.1.0
with: with:
dockerfile: ${{ env.CONTEXT }}${{ env.DOCKERFILE_PATH }}/${{ env.DOCKERFILE }} dockerfile: ${{ env.CONTEXT }}${{ env.DOCKERFILE_PATH }}/${{ env.DOCKERFILE }}
failure-threshold: ignore
- name: Run Trivy container image vulnerability scanner - name: Run Trivy container image vulnerability scanner
uses: aquasecurity/trivy-action@0.12.0 uses: aquasecurity/trivy-action@0.12.0