From e0e475d2991ce60787f680759f046c53bf1e4987 Mon Sep 17 00:00:00 2001 From: buildplan <170122315+buildplan@users.noreply.github.com> Date: Tue, 14 Oct 2025 12:01:33 +0100 Subject: [PATCH] Add check for non-UTF-8 files in Codacy workflow Added a step to check for non-UTF-8 files in the workflow. --- .github/workflows/codacy.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/codacy.yml b/.github/workflows/codacy.yml index 0eb3687..e5ca250 100644 --- a/.github/workflows/codacy.yml +++ b/.github/workflows/codacy.yml @@ -33,6 +33,10 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Check for non-UTF-8 files + run: | + find . -type f -exec file --mime {} + | grep -v 'charset=utf-8' || true + # Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis - name: Run Codacy Analysis CLI uses: codacy/codacy-analysis-cli-action@d840f886c4bd4edc059706d09c6a1586111c540b