diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 7843e82..213d207 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -19,8 +19,10 @@ docker run --rm \ -v "$REPO_ROOT":/repo \ -w /repo \ -e STAGED_FILES="$STAGED" \ + -u 1001:1001 \ + -e HOME=/tmp \ python:3.12-slim \ - sh -c "pip install --quiet bandit && python scripts/security_check.py" + sh -c "pip install --quiet --user bandit && python scripts/security_check.py" EXIT_CODE=$?