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.

ci: reduce workflow token permissions to least privilege

LearningCircuit460145e944f2
diff --git a/.github/workflows/pytest-tests.yml b/.github/workflows/pytest-tests.yml
index ce66570c57..80df3057d0 100644
--- a/.github/workflows/pytest-tests.yml
+++ b/.github/workflows/pytest-tests.yml
@@ -8,10 +8,8 @@ on:
branches: [ main, dev ]
workflow_dispatch:
-# Permissions needed for GitHub Pages deployment and PR comments
-permissions:
- contents: write
- pull-requests: write
+# Top-level permissions set to minimum (OSSF Scorecard Token-Permissions)
+permissions: {}
env:
TEST_IMAGE: ldr-test
@@ -21,6 +19,9 @@ jobs:
pytest-tests:
runs-on: ubuntu-latest
name: All Pytest Tests + Coverage
+ permissions:
+ contents: write # Needed for gh-pages deployment
+ pull-requests: write # Needed for PR comments
if: |
github.event_name == 'pull_request' ||
github.ref == 'refs/heads/main' ||
diff --git a/.github/workflows/sbom.yml b/.github/workflows/sbom.yml
index 5cb8272edf..49ae8a5dd8 100644
--- a/.github/workflows/sbom.yml
+++ b/.github/workflows/sbom.yml
@@ -15,7 +15,7 @@ jobs:
name: Generate Software Bill of Materials
runs-on: ubuntu-latest
permissions:
- contents: write
+ contents: read
actions: read
steps:
diff --git a/.github/workflows/sync-main-to-dev.yml b/.github/workflows/sync-main-to-dev.yml
index 5b475e9bad..fc96ee11a7 100644
--- a/.github/workflows/sync-main-to-dev.yml
+++ b/.github/workflows/sync-main-to-dev.yml
@@ -17,7 +17,6 @@ jobs:
permissions:
contents: write
pull-requests: write
- actions: write
steps:
- name: Harden the runner (Audit all outbound calls)