14 lines
213 B
Bash
14 lines
213 B
Bash
|
|
#!/bin/bash
|
||
|
|
set -e
|
||
|
|
|
||
|
|
REPO_ROOT=$(git rev-parse --show-toplevel)
|
||
|
|
WEB_DIR="$REPO_ROOT/apps/web"
|
||
|
|
|
||
|
|
echo "Frontend Security Audit (npm)"
|
||
|
|
|
||
|
|
cd "$REPO_ROOT"
|
||
|
|
|
||
|
|
npm audit --audit-level=critical
|
||
|
|
|
||
|
|
echo "Security audit passed."
|