From 324f7aec48b706d1bc497beadf425cfa775db617 Mon Sep 17 00:00:00 2001 From: aarlaud Date: Tue, 7 May 2024 17:02:07 +0200 Subject: [PATCH] fix: simplify scmType matching for accept rules Co-authored-by: Matthew Rogers --- charts/snyk-broker/templates/broker_deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/snyk-broker/templates/broker_deployment.yaml b/charts/snyk-broker/templates/broker_deployment.yaml index 73810c2..cabbf48 100644 --- a/charts/snyk-broker/templates/broker_deployment.yaml +++ b/charts/snyk-broker/templates/broker_deployment.yaml @@ -462,7 +462,7 @@ spec: - name: ACCEPT value: /home/node/private/accept.json {{ else }} - {{- if or (eq .Values.scmType "github-com") (eq .Values.scmType "github-enterprise") (eq .Values.scmType "bitbucket-server") (eq .Values.scmType "bitbucket-server-bearer-auth") (eq .Values.scmType "gitlab") (eq .Values.scmType "azure-repos") }} + {{- if has .Values.scmType ( list "github-com" "github-enterprise" "bitbucket-server" "bitbucket-server-bearer-auth" "gitlab" "azure-repos") }} {{- if not .Values.disableAutoAcceptRules }} # Default Values to allow Snyk Code Snippets and Snyk IaC {{- if not .Values.enableSnykCodeLocalEngine }}