Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: generate package-lock.json on-the-fly for npm audit (#1153)

LearningCircuite0fd2013ae8d
diff --git a/.github/workflows/npm-audit.yml b/.github/workflows/npm-audit.yml
index 346995b731..7b33660352 100644
--- a/.github/workflows/npm-audit.yml
+++ b/.github/workflows/npm-audit.yml
@@ -42,6 +42,11 @@ jobs:
run: |
echo "=== Running npm audit on root package.json ==="
if [ -f "package.json" ]; then
+ # Generate lockfile if it doesn't exist (required for npm audit)
+ if [ ! -f "package-lock.json" ]; then
+ echo "📦 Generating package-lock.json..."
+ npm i --package-lock-only --ignore-scripts
+ fi
npm audit --audit-level=moderate || echo "AUDIT_FAILED=true" >> "$GITHUB_ENV"
else
echo "No package.json found in root"
@@ -53,6 +58,11 @@ jobs:
echo "=== Running npm audit on tests/ui_tests ==="
if [ -f "tests/ui_tests/package.json" ]; then
cd tests/ui_tests
+ # Generate lockfile if it doesn't exist (required for npm audit)
+ if [ ! -f "package-lock.json" ]; then
+ echo "📦 Generating package-lock.json..."
+ npm i --package-lock-only --ignore-scripts
+ fi
npm audit --audit-level=moderate || echo "AUDIT_UI_FAILED=true" >> "$GITHUB_ENV"
else
echo "No package.json found in tests/ui_tests"