github.com/aquasecurity/trivy-iac@v0.8.1-0.20240127024015-3d8e412cf0ab/pkg/scanners/helm/test/mysql/charts/common/templates/_warnings.tpl (about) 1 {{/* vim: set filetype=mustache: */}} 2 {{/* 3 Warning about using rolling tag. 4 Usage: 5 {{ include "common.warnings.rollingTag" .Values.path.to.the.imageRoot }} 6 */}} 7 {{- define "common.warnings.rollingTag" -}} 8 9 {{- if and (contains "bitnami/" .repository) (not (.tag | toString | regexFind "-r\\d+$|sha256:")) }} 10 WARNING: Rolling tag detected ({{ .repository }}:{{ .tag }}), please note that it is strongly recommended to avoid using rolling tags in a production environment. 11 +info https://docs.bitnami.com/containers/how-to/understand-rolling-tags-containers/ 12 {{- end }} 13 14 {{- end -}}