Skip to content

Commit

Permalink
UD-1532: remove recursive chgrp/chmod from trivy download job
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Conner <kev.conner@getupcloud.com>
  • Loading branch information
knrc committed Jun 7, 2024
1 parent d2e0b85 commit 11c273a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions charts/zora/templates/plugins/trivy-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ spec:
{{- if .Values.scan.plugins.trivy.persistence.downloadJavaDB }}
--download-java-db-only \
{{- end }}
--download-db-only \
&& chgrp -R {{ .Values.scan.plugins.trivy.persistence.fsGroup }} /tmp/trivy-cache/* && chmod -R g+rwX /tmp/trivy-cache/*
--download-db-only
env:
- name: SSL_CERT_DIR
value: "/etc/ssl/:/run/secrets/kubernetes.io/serviceaccount/"
Expand Down

0 comments on commit 11c273a

Please sign in to comment.