From 8d58e084ad2b1e7d0203697681d020e7a6e85f1c Mon Sep 17 00:00:00 2001 From: buildplan <170122315+buildplan@users.noreply.github.com> Date: Wed, 22 Oct 2025 10:34:08 +0100 Subject: [PATCH] Enhance non-UTF-8 file check in Codacy workflow --- .github/workflows/codacy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codacy.yml b/.github/workflows/codacy.yml index e5ca250..af16680 100644 --- a/.github/workflows/codacy.yml +++ b/.github/workflows/codacy.yml @@ -35,7 +35,7 @@ jobs: - name: Check for non-UTF-8 files run: | - find . -type f -exec file --mime {} + | grep -v 'charset=utf-8' || true + find . -name .git -prune -o -type f -exec file --mime {} + | grep -v -e 'charset=utf-8' -e 'charset=us-ascii' -e 'charset=binary' || echo "All files OK" # Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis - name: Run Codacy Analysis CLI