Skip to content

Commit

Permalink
feat(helm): make .trivyignore file a configurable value (#885)
Browse files Browse the repository at this point in the history
  • Loading branch information
elchenberg committed Jan 5, 2022
1 parent df182b7 commit c384c33
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.8.2
version: 0.8.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 4 additions & 0 deletions deploy/helm/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ data:
trivy.severity: {{ .severity | quote }}
{{- if .ignoreUnfixed }}
trivy.ignoreUnfixed: {{ .ignoreUnfixed | quote }}
{{- end }}
{{- with .ignoreFile }}
trivy.ignoreFile: |
{{- . | trim | nindent 4 }}
{{- end }}
{{- if eq .mode "ClientServer" }}
trivy.serverURL: {{ required ".Values.trivy.serverURL is required" .serverURL | quote }}
Expand Down
6 changes: 6 additions & 0 deletions deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ trivy:
#
ignoreUnfixed: "false"

# ignoreFile can be used to tell Trivy to ignore vulnerabilities by ID (one per line)
#
# ignoreFile: |
# CVE-1970-0001
# CVE-1970-0002

# resources resource requests and limits
resources:
requests:
Expand Down

0 comments on commit c384c33

Please sign in to comment.