34 lines
1.1 KiB
Batchfile
34 lines
1.1 KiB
Batchfile
@echo off
|
|
REM Script pour exécuter OWASP Dependency Check (Windows)
|
|
REM Usage: scripts\owasp-dependency-check.bat
|
|
|
|
echo 🔍 Exécution de l'audit de sécurité OWASP Dependency Check...
|
|
|
|
REM Vérifier si OWASP Dependency Check est installé
|
|
where dependency-check.bat >nul 2>&1
|
|
if %ERRORLEVEL% NEQ 0 (
|
|
echo ❌ OWASP Dependency Check n'est pas installé.
|
|
echo 📥 Installation recommandée:
|
|
echo - Télécharger depuis: https://owasp.org/www-project-dependency-check/
|
|
echo - Ou utiliser Docker: docker run --rm -v %CD%:/src owasp/dependency-check --scan /src
|
|
exit /b 1
|
|
)
|
|
|
|
REM Créer le répertoire de sortie
|
|
if not exist "target\security-reports" mkdir target\security-reports
|
|
|
|
REM Exécuter l'audit
|
|
echo ⏳ Analyse des dépendances en cours...
|
|
dependency-check.bat ^
|
|
--project "UnionFlow Client" ^
|
|
--scan unionflow-client-quarkus-primefaces-freya ^
|
|
--out target\security-reports ^
|
|
--format HTML ^
|
|
--format JSON ^
|
|
--format XML ^
|
|
--enableExperimental ^
|
|
--failOnCVSS 7
|
|
|
|
echo ✅ Audit terminé. Rapport disponible dans: target\security-reports\
|
|
|