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: fix OSSF Scorecard Token-Permissions findings in workflows (#6794)

LearningCircuit327567463365
diff --git a/.github/workflows/e2e-research-test.yml b/.github/workflows/e2e-research-test.yml
index 87bfae948f..6895c8e30f 100644
--- a/.github/workflows/e2e-research-test.yml
+++ b/.github/workflows/e2e-research-test.yml
@@ -101,15 +101,16 @@ jobs:
research:
name: Run LDR research
needs: build-query
- # Grant the perms the reusable's job needs:
- # - contents: read for actions/checkout
- # - actions: write for actions/upload-artifact@v5+
- # Without this, the reusable's `permissions: contents: read` exceeds
- # the inherited empty permissions and GitHub rejects the workflow at
- # load time (startup_failure with zero jobs).
+ # Grant the perms the reusable's job declares. Its `research` job
+ # requests `contents: read` only; GitHub rejects the call at load
+ # time (startup_failure with zero jobs) if the caller grants less.
+ # No `actions: write`: the callee's job-level declaration caps its
+ # runtime token at `contents: read`, and upload-artifact v7 needs no
+ # `actions` scope: it authenticates with ACTIONS_RUNTIME_TOKEN, and
+ # this callee's own upload step has run under a `contents: read`-only
+ # token since #4016.
permissions:
contents: read
- actions: write
uses: $/.github/workflows/ldr-research-reusable.yml
with:
query: ${{ needs.build-query.outputs.query }}
diff --git a/.github/workflows/issue-research.yml b/.github/workflows/issue-research.yml
index 82aff0e14e..2a43638974 100644
--- a/.github/workflows/issue-research.yml
+++ b/.github/workflows/issue-research.yml
@@ -78,15 +78,16 @@ jobs:
research:
name: Run LDR research
needs: build-query
- # Grant the perms the reusable's job needs:
- # - contents: read for actions/checkout
- # - actions: write for actions/upload-artifact@v5+
- # Without this, the reusable's `permissions: contents: read` exceeds
- # the inherited empty permissions and GitHub rejects the workflow at
- # load time (startup_failure with zero jobs).
+ # Grant the perms the reusable's job declares. Its `research` job
+ # requests `contents: read` only; GitHub rejects the call at load
+ # time (startup_failure with zero jobs) if the caller grants less.
+ # No `actions: write`: the callee's job-level declaration caps its
+ # runtime token at `contents: read`, and upload-artifact v7 needs no
+ # `actions` scope: it authenticates with ACTIONS_RUNTIME_TOKEN, and
+ # this callee's own upload step has run under a `contents: read`-only
+ # token since #4016.
permissions:
contents: read
- actions: write
uses: $/.github/workflows/ldr-research-reusable.yml
with:
query: ${{ needs.build-query.outputs.query }}
diff --git a/.github/workflows/security-tests.yml b/.github/workflows/security-tests.yml
index 6f9d4759d3..b6a793f817 100644
--- a/.github/workflows/security-tests.yml
+++ b/.github/workflows/security-tests.yml
@@ -4,14 +4,15 @@ on:
workflow_call: # Called by release-gate.yml
workflow_dispatch:
-permissions:
- contents: read
- security-events: write # Required for uploading SARIF results to Code Scanning
+permissions: {} # Minimal top-level for OSSF Scorecard
jobs:
security-tests:
runs-on: ubuntu-latest
timeout-minutes: 25
+ permissions:
+ contents: read
+ security-events: write # Required for uploading SARIF results to Code Scanning
services:
postgres: