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
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 3m50s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user