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.

Merge pull request #1070 from LearningCircuit/fix/sync-workflow-pat-token

LearningCircuit6c4b1cff9a16
diff --cc .github/workflows/sync-main-to-dev.yml
index 101aeb375a,fe2b8e7197..5a0a9107e7
--- a/.github/workflows/sync-main-to-dev.yml
+++ b/.github/workflows/sync-main-to-dev.yml
@@@ -19,11 -19,28 +19,28 @@@ jobs
steps:
- name: Checkout repository
- uses: actions/checkout@v5
+ uses: actions/[email protected]
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: |