diff --git a/scanners/typo3scan/templates/cascading-rules.yaml b/scanners/typo3scan/templates/cascading-rules.yaml index 2c32ae28d4..97dd683b66 100644 --- a/scanners/typo3scan/templates/cascading-rules.yaml +++ b/scanners/typo3scan/templates/cascading-rules.yaml @@ -1,12 +1,15 @@ # SPDX-FileCopyrightText: 2021 iteratec GmbH # # SPDX-License-Identifier: Apache-2.0 + # We only want to import the default cascading rules if they are enabled {{ if .Values.cascadingRules.enabled }} +# The CascadingRules are not directly in the /templates directory as their curly bracket syntax clashes with helms templates ... :( +# We import them as raw files to avoid these clashes as escaping them is even more messy {{ range $path, $_ := .Files.Glob "cascading-rules/*" }} # Include File {{ $.Files.Get $path }} # Separate multiple files --- {{ end }} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/scanners/zap-advanced/templates/cascading-rules.yaml b/scanners/zap-advanced/templates/cascading-rules.yaml index ba17285cb7..97dd683b66 100644 --- a/scanners/zap-advanced/templates/cascading-rules.yaml +++ b/scanners/zap-advanced/templates/cascading-rules.yaml @@ -4,7 +4,7 @@ # We only want to import the default cascading rules if they are enabled {{ if .Values.cascadingRules.enabled }} -# The CascadingRules are not directly in the /templates directory as their curly bracket syntax clashes with helms templates ... :( +# The CascadingRules are not directly in the /templates directory as their curly bracket syntax clashes with helms templates ... :( # We import them as raw files to avoid these clashes as escaping them is even more messy {{ range $path, $_ := .Files.Glob "cascading-rules/*" }} # Include File @@ -12,4 +12,4 @@ # Separate multiple files --- {{ end }} -{{ end }} \ No newline at end of file +{{ end }}