~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
feat: Add severity filtering and scheduled scanning to Retire.js workflow
LearningCircuitd1f1a736bfdb
diff --git a/.github/workflows/retirejs.yml b/.github/workflows/retirejs.ymlindex 1e21e9a6d1..6af91dd31d 100644--- a/.github/workflows/retirejs.yml+++ b/.github/workflows/retirejs.yml@@ -24,6 +24,9 @@ on:- 'package.json'- 'package-lock.json'workflow_dispatch:+ schedule:+ # Run weekly security scan on Mondays at 4 AM UTC+ - cron: '0 4 * * 1'permissions:contents: read@@ -53,18 +56,20 @@ jobs:echo "=== Running Retire.js scan ==="# Use npx with specific version for reproducible builds# Scan JavaScript files and node_modules for known vulnerabilities+ # Only flag medium severity and above (exit code 13 when issues found)# Output both SARIF (for GitHub Security) and human-readable format- npx [email protected] --js --node --outputformat sarif --outputpath retire-results.sarif 2>&1 | tee retire-output.txt || true+ npx [email protected] --js --node --severity medium --outputformat sarif --outputpath retire-results.sarif 2>&1 | tee retire-output.txt+ RETIRE_EXIT_CODE=$?- # Check if vulnerabilities were found (exit code handling)- if grep -q "vulnerability" retire-output.txt 2>/dev/null; then+ # Check if vulnerabilities were found (exit code 13 indicates issues)+ if [ $RETIRE_EXIT_CODE -eq 13 ]; thenecho "RETIRE_FOUND_ISSUES=true" >> "$GITHUB_ENV"fi# Display human-readable summaryecho ""echo "=== Scan Summary ==="- cat retire-output.txt || true+ cat retire-output.txt- name: Upload SARIF resultsuses: github/codeql-action/upload-sarif@d3ced5c96c16c4332e2a61eb6f3649d6f1b20bb8 # v3@@ -77,11 +82,14 @@ jobs:- name: Check scan resultsrun: |if [[ "$RETIRE_FOUND_ISSUES" == "true" ]]; then- echo "⚠️ Retire.js found potentially vulnerable JavaScript libraries"+ echo "::error::Retire.js found medium or higher severity vulnerabilities"echo "Review the Security tab for details"echo "Consider updating or replacing affected libraries"- # Note: We don't fail the build as some findings may be false positives- # or in development dependencies only+ # Only fail for PR/push events, not scheduled scans+ if [[ "${{ github.event_name }}" != "schedule" ]]; then+ exit 1+ fi+ echo "::warning::Scheduled scan - reporting only, not failing the workflow"else- echo "✅ No known vulnerable JavaScript libraries detected"+ echo "✅ No medium or higher severity vulnerabilities detected"fi