Update code analysis workflow to remove node_modules along with build artifacts before gitleaks scanning, improving security and ensuring a cleaner environment for analysis.
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 3m50s

This commit is contained in:
Torsten Schulz (local)
2025-12-20 15:35:03 +01:00
parent 111c8c239c
commit 60257edde3

View File

@@ -69,7 +69,7 @@ jobs:
exit 1 exit 1
fi fi
chmod +x gitleaks chmod +x gitleaks
# Remove build artifacts before scanning # Remove build artifacts and node_modules before scanning
rm -rf .next .output .nuxt 2>/dev/null || true rm -rf .next .output .nuxt node_modules 2>/dev/null || true
./gitleaks detect --source . --no-git --verbose --exit-code 1 ./gitleaks detect --source . --no-git --verbose --exit-code 1
rm -f gitleaks.tar.gz rm -f gitleaks.tar.gz