mirror of
https://github.com/buildplan/du_setup.git
synced 2025-12-17 09:45:26 +00:00
Enhance non-UTF-8 file check in Codacy workflow
This commit is contained in:
parent
e6eb329782
commit
8d58e084ad
2
.github/workflows/codacy.yml
vendored
2
.github/workflows/codacy.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user