mirror of
https://github.com/bitnami/charts.git
synced 2026-03-27 07:17:25 +08:00
fix(values-ascii-check): amend regexp to detect non-ascii characters (#36415)
Signed-off-by: Fran Mulero <francisco-jose.mulero@broadcom.com>
This commit is contained in:
2
.github/workflows/values-ascii-check.yml
vendored
2
.github/workflows/values-ascii-check.yml
vendored
@@ -30,7 +30,7 @@ jobs:
|
||||
values_files="$(echo "$files_changed" | grep -o ".*values\.yaml$" | sort | uniq || true)"
|
||||
# Create an empty file, useful when the PR changes ignored files
|
||||
touch "${TEMP_OUTPUT}"
|
||||
grep -nHP "[\x80-\xFF]" "${values_files[@]}" | sort -u > ${TEMP_OUTPUT} || true
|
||||
LC_ALL=C grep -nHP '[^\x00-\x7F]' "${values_files[@]}" | sort -u > ${TEMP_OUTPUT} || true
|
||||
while read -r line; do
|
||||
# line format:
|
||||
# file:row:message
|
||||
|
||||
Reference in New Issue
Block a user