We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b66715 commit f31f074Copy full SHA for f31f074
2 files changed
.github/workflows/build-docker.yml
@@ -11,6 +11,11 @@ on:
11
description: "List of flavors as key-value pair attributes"
12
required: false
13
type: string
14
+ trivy-exit-code:
15
+ description: "Exit code for Trivy when vulnerabilities are found (0 = warn only, 1 = fail)"
16
+ required: false
17
+ type: string
18
+ default: "1"
19
20
env:
21
GHCR_REPO: ghcr.io/defguard/defguard
@@ -79,7 +84,7 @@ jobs:
79
84
with:
80
85
image-ref: "${{ env.GHCR_REPO }}:${{ github.sha }}-${{ matrix.tag }}"
81
86
format: "table"
82
- exit-code: "1"
87
+ exit-code: ${{ inputs.trivy-exit-code }}
83
88
ignore-unfixed: true
89
vuln-type: "os,library"
90
severity: "CRITICAL,HIGH,MEDIUM"
.github/workflows/current.yml
@@ -24,6 +24,7 @@ jobs:
24
tags: |
25
type=ref,event=branch
26
type=sha
27
+ trivy-exit-code: "0"
28
29
trigger-e2e:
30
needs: build-current
0 commit comments