Skip to content

Commit

Permalink
Merge pull request snyk#45 from snyk/doc/add-note-about-accept-code-b…
Browse files Browse the repository at this point in the history
…eing-enabled

feat: flag to disable accept rules default and update doc
  • Loading branch information
aarlaud authored Aug 30, 2023
2 parents 491d6aa + 9c110e9 commit a3a19bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ This is a Helm Chart to deploy the [Snyk Broker](https://docs.snyk.io/enterprise

## Usage

Please refer to our [extensive documentation](https://docs.snyk.io/enterprise-setup/snyk-broker/install-and-configure-snyk-broker/install-and-configure-broker-using-helm)
Please refer to our [extensive documentation](https://docs.snyk.io/enterprise-setup/snyk-broker/install-and-configure-snyk-broker/install-and-configure-broker-using-helm)
2 changes: 1 addition & 1 deletion charts/snyk-broker/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
name: snyk-broker
version: 1.7.1
version: 1.7.2
description: A Helm chart for Kubernetes
type: application
6 changes: 4 additions & 2 deletions charts/snyk-broker/templates/broker_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -355,14 +355,16 @@ spec:
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 "gitlab") (eq .Values.scmType "azure-repos") }}
# Default Values to allow Snyk Code Snippets and Snyk IaC
{{- if not .Values.enableSnykCodeLocalEngine}}
{{- if not .Values.disableAutoAcceptRules }}
# Default Values to allow Snyk Code Snippets and Snyk IaC
{{- if not .Values.enableSnykCodeLocalEngine }}
- name: ACCEPT_CODE
value: "true"
{{- end}}
- name: ACCEPT_IAC
value: "tf,yaml,yml,json,tpl"
{{- end}}
{{- end}}
{{- end }}
# Broker Configuration
{{- if not .Values.preflightChecks.enabled }}
Expand Down

0 comments on commit a3a19bf

Please sign in to comment.