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 merge conflicts between main and dev

LearningCircuit10b063a81ef1
diff --cc .github/workflows/sync-main-to-dev.yml
index e18b2cbe18,5a0a9107e7..8a916bd564
--- a/.github/workflows/sync-main-to-dev.yml
+++ b/.github/workflows/sync-main-to-dev.yml
@@@ -22,11 -19,28 +22,28 @@@ jobs
steps:
- name: Checkout repository
- uses: actions/[email protected]
+ uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
fetch-depth: 0
- # Use GITHUB_TOKEN for checkout so PR is created by github-actions bot
- token: ${{ secrets.GITHUB_TOKEN }}
+ # SECURITY: Dual-token strategy for workflow file modifications
+ # - PAT_TOKEN (used here): Allows git push of workflow file changes.
+ # GITHUB_TOKEN cannot modify .github/workflows/* by design (security feature).
+ # - GITHUB_TOKEN (used for PR creation): Ensures PR is created by github-actions[bot]
+ # for proper approval workflow.
+ #
+ # PAT_TOKEN Requirements:
+ # - Type: Fine-grained Personal Access Token (preferred over classic)
+ # - Scope: 'workflows' permission only (minimal required)
+ # - Expiration: ≤90 days with documented rotation schedule
+ # - Level: Repository secret (not organization)
+ # - Owner: Repository maintainers (see SECURITY.md for contacts)
+ #
+ # Risk Mitigation:
+ # - Token stored in git config is only accessible within this job
+ # - All workflow steps are controlled (no untrusted code execution)
+ # - Repository branch protections prevent unauthorized workflow changes
+ # - Regular token rotation enforced via expiration
+ token: ${{ secrets.PAT_TOKEN }}
- name: Configure Git
run: |
@@@ -109,10 -123,13 +126,13 @@@
- name: Create or Update Pull Request
if: steps.check_sync.outputs.sync_needed == 'true'
- uses: actions/github-script@v8
+ uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
with:
- # Use GITHUB_TOKEN so the PR is created by github-actions[bot]
- # This allows PAT_TOKEN to approve it later
+ # SECURITY: Use GITHUB_TOKEN (not PAT_TOKEN) for PR creation
+ # - Ensures PR is created by github-actions[bot] account
+ # - Allows PAT_TOKEN (different actor) to approve it later
+ # - Prevents self-approval security issue
+ # This complements PAT_TOKEN usage in checkout (see above)
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const branchName = '${{ steps.create_branch.outputs.branch_name }}';
@@@ -326,8 -343,12 +346,12 @@@
- name: Auto-approve PR
if: steps.verify_commits.outputs.safe_to_merge == 'true'
id: auto_approve
- uses: actions/github-script@v8
+ uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
with:
+ # SECURITY: Use PAT_TOKEN for approval (different from PR creator)
+ # - PR was created by GITHUB_TOKEN (github-actions[bot])
+ # - PAT_TOKEN represents a different actor, allowing approval
+ # - Prevents self-approval (GitHub requirement)
github-token: ${{ secrets.PAT_TOKEN }}
script: |
const prNumber = ${{ steps.verify_commits.outputs.pr_number }};
@@@ -359,8 -380,11 +383,11 @@@
- name: Enable auto-merge
if: steps.auto_approve.outputs.approved == 'true'
- uses: actions/github-script@v8
+ uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
with:
+ # SECURITY: Use PAT_TOKEN for auto-merge enablement
+ # - Requires same permissions as approval
+ # - Must be same actor that approved the PR
github-token: ${{ secrets.PAT_TOKEN }}
script: |
const prNumber = ${{ steps.verify_commits.outputs.pr_number }};
diff --cc src/local_deep_research/web/static/js/services/ui.js
index 0a8d3b7565,c61030ae09..0e79d70d1e
--- a/src/local_deep_research/web/static/js/services/ui.js
+++ b/src/local_deep_research/web/static/js/services/ui.js
@@@ -368,8 -369,8 +373,8 @@@ function showAlert(message, type = 'inf
// Add a close button
const closeBtn = document.createElement('span');
- closeBtn.className = 'alert-close';
- closeBtn.textContent = '×'; // Use textContent instead of innerHTML
+ closeBtn.className = 'ldr-alert-close';
- closeBtn.innerHTML = '×';
++ closeBtn.textContent = '×'; // Use textContent instead of innerHTML for security
closeBtn.addEventListener('click', () => {
alert.remove();
alertContainer.style.display = 'none';