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 62
62
git config --global --add safe.directory "$GITHUB_WORKSPACE"
63
63
bash scripts/ct-lint.sh --config ct.yaml
64
64
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
-
72
65
- uses : matrix-org/setup-python-poetry@gaelg/poetry-venv
73
66
with :
74
67
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)
10
10
11
11
error=1
12
12
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
+
13
17
# Call the ct lint command and stream the output to stdout
14
18
if ct lint " $@ " 2>&1 | tee " $temp_output_file "
15
19
then
You can’t perform that action at this time.
0 commit comments