Add check for non-UTF-8 files in Codacy workflow

Added a step to check for non-UTF-8 files in the workflow.
This commit is contained in:
buildplan
2025-10-14 12:01:33 +01:00
committed by GitHub
parent 663276952b
commit e0e475d299

View File

@@ -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