File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 6262 git config --global --add safe.directory "$GITHUB_WORKSPACE"
6363 bash scripts/ct-lint.sh --config ct.yaml
6464
65- - name : Ensure we don't use the helm $ root token in .tpl files
66- shell : bash
67- run : |
68- find . -type f -name '*.tpl' -exec grep -E '\{\{[^}]*\$[^a-zA-Z0-9_][^}]*\}\}' {} + && {
69- echo 'Error: $ is used in a .tpl files, but helm passes the local context to the special variable $ in included templates.'; exit 1
70- } || echo "OK."
71-
7265 - uses : matrix-org/setup-python-poetry@gaelg/poetry-venv
7366 with :
7467 poetry-version : " 1.8.5"
Original file line number Diff line number Diff line change 1+ ct-lint.sh : Run the check about $ forbidden in .tpl files.
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ temp_output_file=$(mktemp)
1010
1111error=1
1212
13+ find . -type f -name ' *.tpl' -exec grep -E ' \{\{[^}]*\$[^a-zA-Z0-9_][^}]*\}\}' {} + && {
14+ echo ' Error: $ is used in a .tpl files, but helm passes the local context to the special variable $ in included templates.' ; exit 1
15+ } || echo " OK."
16+
1317# Call the ct lint command and stream the output to stdout
1418if ct lint " $@ " 2>&1 | tee " $temp_output_file "
1519then
You can’t perform that action at this time.
0 commit comments