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: resolve remaining template injection issues

LearningCircuitea4d7e81f9ec
diff --git a/.github/workflows/responsive-ui-tests-enhanced.yml b/.github/workflows/responsive-ui-tests-enhanced.yml
index 054d7738ee..5ed3772ca8 100644
--- a/.github/workflows/responsive-ui-tests-enhanced.yml
+++ b/.github/workflows/responsive-ui-tests-enhanced.yml
@@ -210,6 +210,10 @@ jobs:
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
VIEWPORT: ${{ matrix.viewport }}
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GH_REPOSITORY: ${{ github.repository }}
+ GH_REPO_OWNER: ${{ github.repository_owner }}
+ GH_REPO_NAME: ${{ github.event.repository.name }}
run: |
# This requires GitHub Pages to be enabled for the repo
# Create a branch for the screenshots
@@ -222,13 +226,13 @@ jobs:
# Add all screenshots and gallery
git add responsive-ui-tests screenshot-gallery.html
- git commit -m "Screenshots for PR #${{ github.event.pull_request.number }}"
+ git commit -m "Screenshots for PR #$PR_NUMBER"
# Push to a dedicated branch (requires write permissions)
- git push --force "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" HEAD:$BRANCH_NAME 2>/dev/null || true
+ git push --force "https://x-access-token:[email protected]/$GH_REPOSITORY.git" HEAD:$BRANCH_NAME 2>/dev/null || true
# The URL would be: https://[owner].github.io/[repo]/pr-screenshots-[number]-[viewport]/screenshot-gallery.html
- echo "Screenshots available at: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/$BRANCH_NAME/screenshot-gallery.html" || true
+ echo "Screenshots available at: https://$GH_REPO_OWNER.github.io/$GH_REPO_NAME/$BRANCH_NAME/screenshot-gallery.html" || true
- name: Stop application server
if: always()
diff --git a/.github/workflows/update-npm-dependencies.yml b/.github/workflows/update-npm-dependencies.yml
index 12cb5a394f..8e897d6d3f 100644
--- a/.github/workflows/update-npm-dependencies.yml
+++ b/.github/workflows/update-npm-dependencies.yml
@@ -50,36 +50,51 @@ jobs:
cache-dependency-path: ${{ matrix.npm_directory.path }}/${{ matrix.npm_directory.cache_path }}
- name: 🔍 Security audit
+ env:
+ NPM_DIR: ${{ matrix.npm_directory.path }}
run: |
- cd "${{ matrix.npm_directory.path }}"
+ cd "$NPM_DIR"
npm audit --audit-level moderate
- name: 🔐 Fix security vulnerabilities
+ env:
+ NPM_DIR: ${{ matrix.npm_directory.path }}
run: |
- cd "${{ matrix.npm_directory.path }}"
+ cd "$NPM_DIR"
npm audit fix --level moderate || echo "Some vulnerabilities could not be auto-fixed"
- name: 👚 Update to latest compatible versions
+ env:
+ NPM_DIR: ${{ matrix.npm_directory.path }}
+ NPM_ARGS: ${{ inputs.npm_args || '--save' }}
run: |
- cd "${{ matrix.npm_directory.path }}"
- npm update "${{ inputs.npm_args || '--save' }}"
+ cd "$NPM_DIR"
+ npm update $NPM_ARGS
- name: 🔨 Build (if applicable)
+ env:
+ NPM_DIR: ${{ matrix.npm_directory.path }}
+ BUILD_CMD: ${{ matrix.npm_directory.build_cmd }}
run: |
- cd "${{ matrix.npm_directory.path }}"
- ${{ matrix.npm_directory.build_cmd }}
+ cd "$NPM_DIR"
+ eval "$BUILD_CMD"
if: matrix.npm_directory.build_cmd != ''
- name: 🧪 Test (if applicable)
+ env:
+ NPM_DIR: ${{ matrix.npm_directory.path }}
+ TEST_CMD: ${{ matrix.npm_directory.test_cmd }}
run: |
- cd "${{ matrix.npm_directory.path }}"
- ${{ matrix.npm_directory.test_cmd }}
+ cd "$NPM_DIR"
+ eval "$TEST_CMD"
if: matrix.npm_directory.test_cmd != ''
- name: 📝 Check for changes
id: verify-changed-files
+ env:
+ NPM_DIR: ${{ matrix.npm_directory.path }}
run: |
- cd "${{ matrix.npm_directory.path }}"
+ cd "$NPM_DIR"
# Check if package.json or package-lock.json have changed
if git diff --quiet package.json package-lock.json; then