Update code analysis workflow to remove node_modules along with build artifacts before gitleaks scanning, improving security and ensuring a cleaner environment for analysis.

This commit is contained in:
Torsten Schulz (local)
2025-12-20 15:35:03 +01:00
parent a64863421a
commit 1a1d639ec0

View File

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