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: Remove redundant job-level permissions in 7 security workflows

LearningCircuitbfd54d0ca2e6
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 7f455184b6..84006453ae 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -22,6 +22,8 @@ on:
permissions:
contents: read
security-events: write
+ packages: read # Required to fetch CodeQL packs
+ actions: read # Required for private repositories
jobs:
analyze:
@@ -32,17 +34,6 @@ jobs:
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
- permissions:
- # required for all workflows
- security-events: write
-
- # required to fetch internal or private CodeQL packs
- packages: read
-
- # only required for workflows in private repositories
- actions: read
- contents: read
-
strategy:
fail-fast: false
matrix:
diff --git a/.github/workflows/container-security.yml b/.github/workflows/container-security.yml
index 917024517e..7650b85c53 100644
--- a/.github/workflows/container-security.yml
+++ b/.github/workflows/container-security.yml
@@ -13,15 +13,11 @@ on:
permissions:
contents: read
security-events: write
+ actions: read # Required for GitHub Actions cache
jobs:
trivy-scan:
runs-on: ubuntu-latest
- permissions:
- contents: read
- security-events: write
- actions: read
- packages: write
steps:
- name: Checkout code
@@ -83,8 +79,6 @@ jobs:
# Additional job for Dockerfile security analysis
dockerfile-scan:
runs-on: ubuntu-latest
- permissions:
- contents: read
steps:
- name: Checkout code
diff --git a/.github/workflows/devskim.yml b/.github/workflows/devskim.yml
index 2ea7da40b6..6f000baaa4 100644
--- a/.github/workflows/devskim.yml
+++ b/.github/workflows/devskim.yml
@@ -13,15 +13,12 @@ on:
permissions:
contents: read
security-events: write
+ actions: read # Required for workflow status checks
jobs:
devskim-scan:
name: DevSkim Security Linter
runs-on: ubuntu-latest
- permissions:
- contents: read
- security-events: write
- actions: read
steps:
- name: Checkout repository
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml
index 8dfee8cd60..b1f4890b5c 100644
--- a/.github/workflows/docker-publish.yml
+++ b/.github/workflows/docker-publish.yml
@@ -5,8 +5,7 @@ on:
types: [created]
permissions:
- contents: read
- packages: write
+ contents: read # Only need read access for Docker Hub publishing
jobs:
build-amd64:
diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml
index c293593737..6c4b0fe96e 100644
--- a/.github/workflows/gitleaks.yml
+++ b/.github/workflows/gitleaks.yml
@@ -13,14 +13,11 @@ on:
permissions:
contents: read
security-events: write
+ actions: read # Required for workflow status checks
jobs:
gitleaks:
runs-on: ubuntu-latest
- permissions:
- contents: read
- security-events: write
- actions: read
steps:
- name: Checkout code
diff --git a/.github/workflows/hadolint.yml b/.github/workflows/hadolint.yml
index 65039aeef7..cd8d88315e 100644
--- a/.github/workflows/hadolint.yml
+++ b/.github/workflows/hadolint.yml
@@ -19,15 +19,12 @@ on:
permissions:
contents: read
security-events: write
+ pull-requests: write # Required for PR comments
jobs:
hadolint:
name: Hadolint Dockerfile Analysis
runs-on: ubuntu-latest
- permissions:
- contents: read
- security-events: write
- pull-requests: write
steps:
- name: Checkout repository
diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml
index aa5e324cdd..08408774fc 100644
--- a/.github/workflows/semgrep.yml
+++ b/.github/workflows/semgrep.yml
@@ -13,14 +13,11 @@ on:
permissions:
contents: read
security-events: write
+ actions: read # Required for workflow status checks
jobs:
semgrep-scan:
runs-on: ubuntu-latest
- permissions:
- contents: read
- security-events: write
- actions: read
steps:
- name: Checkout code