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.

feat: add modern GitHub Actions security tools (zizmor, harden-runner, actionlint)

LearningCircuit5823b3a013e7
diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml
new file mode 100644
index 0000000000..1b03e5011e
--- /dev/null
+++ b/.github/actionlint.yaml
@@ -0,0 +1,4 @@
+self-hosted-runner:
+ # Custom runner labels used in this repository
+ labels:
+ - ubuntu-24.04-arm
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml
index a46a0deac8..427611734f 100644
--- a/.github/workflows/docker-publish.yml
+++ b/.github/workflows/docker-publish.yml
@@ -13,6 +13,11 @@ jobs:
digest: ${{ steps.build.outputs.digest }}
steps:
+ - name: Harden Runner
+ uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
+ with:
+ egress-policy: audit
+
- name: Check out the repo
uses: actions/checkout@v5
with:
@@ -46,6 +51,11 @@ jobs:
digest: ${{ steps.build.outputs.digest }}
steps:
+ - name: Harden Runner
+ uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
+ with:
+ egress-policy: audit
+
- name: Check out the repo
uses: actions/checkout@v5
with:
@@ -128,6 +138,11 @@ jobs:
environment: release
steps:
+ - name: Harden Runner
+ uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
+ with:
+ egress-policy: audit
+
- name: Check out the repo
uses: actions/checkout@v5
with:
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 7855c7104b..0bcd0b68d9 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -272,6 +272,11 @@ jobs:
id-token: write
steps:
+ - name: Harden Runner
+ uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
+ with:
+ egress-policy: audit
+
- name: Download package
uses: actions/download-artifact@v6
with:
diff --git a/.github/workflows/zizmor-security.yml b/.github/workflows/zizmor-security.yml
new file mode 100644
index 0000000000..5c706e901f
--- /dev/null
+++ b/.github/workflows/zizmor-security.yml
@@ -0,0 +1,104 @@
+name: Zizmor GitHub Actions Security
+
+on:
+ push:
+ branches: [ main, dev ]
+ paths:
+ - '.github/workflows/**'
+ - '.github/actions/**'
+ pull_request:
+ branches: [ main, dev ]
+ paths:
+ - '.github/workflows/**'
+ - '.github/actions/**'
+ workflow_dispatch:
+ schedule:
+ # Run security audit weekly on Monday at 9 AM UTC
+ - cron: '0 9 * * 1'
+
+permissions:
+ contents: read
+
+jobs:
+ zizmor-scan:
+ name: Zizmor Workflow Security Scan
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ security-events: write
+ actions: read
+
+ steps:
+ - name: Harden Runner
+ uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
+ with:
+ egress-policy: audit
+
+ - name: Checkout repository
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+
+ - name: Set up Python
+ uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
+ with:
+ python-version: '3.12'
+
+ - name: Install zizmor
+ run: |
+ pip install zizmor
+
+ - name: Run zizmor security scan
+ run: |
+ zizmor --format sarif --output zizmor-results.sarif .github/workflows/
+ continue-on-error: true
+
+ - name: Upload zizmor results to GitHub Security tab
+ uses: github/codeql-action/upload-sarif@662472033e021d55d94146f66f6058822889cfcd # v3.27.9
+ if: always()
+ with:
+ sarif_file: zizmor-results.sarif
+ category: zizmor
+
+ - name: Upload zizmor results as artifact
+ uses: actions/upload-artifact@4ab4dfd14419c9e8fcbca24eabacfee71e018d1f # v4.5.0
+ if: always()
+ with:
+ name: zizmor-scan-results
+ path: zizmor-results.sarif
+ retention-days: 30
+
+ - name: Run zizmor with human-readable output
+ if: always()
+ run: |
+ echo "## 🔍 Zizmor GitHub Actions Security Scan" >> $GITHUB_STEP_SUMMARY
+ echo "" >> $GITHUB_STEP_SUMMARY
+ echo "### What is Zizmor?" >> $GITHUB_STEP_SUMMARY
+ echo "Zizmor is a modern security linter for GitHub Actions workflows that detects:" >> $GITHUB_STEP_SUMMARY
+ echo "" >> $GITHUB_STEP_SUMMARY
+ echo "#### 🎯 Security Vulnerabilities Detected:" >> $GITHUB_STEP_SUMMARY
+ echo "- **Template Injection**: Attacker-controlled input in expressions" >> $GITHUB_STEP_SUMMARY
+ echo "- **ArtiPACKED**: Credentials leaked in workflow artifacts" >> $GITHUB_STEP_SUMMARY
+ echo "- **Vulnerable Actions**: Third-party actions with known CVEs" >> $GITHUB_STEP_SUMMARY
+ echo "- **Impostor Commits**: Hash-pinned actions pointing to forks" >> $GITHUB_STEP_SUMMARY
+ echo "- **Hardcoded Credentials**: Plain-text secrets in workflows" >> $GITHUB_STEP_SUMMARY
+ echo "- **Excessive Permissions**: Over-privileged workflow tokens" >> $GITHUB_STEP_SUMMARY
+ echo "- **Unpinned Actions**: Mutable action references" >> $GITHUB_STEP_SUMMARY
+ echo "- **Cache Poisoning**: Unsafe cache usage patterns" >> $GITHUB_STEP_SUMMARY
+ echo "" >> $GITHUB_STEP_SUMMARY
+ echo "#### 📊 Scan Results:" >> $GITHUB_STEP_SUMMARY
+
+ # Run zizmor again for display
+ zizmor .github/workflows/ > /tmp/zizmor-output.txt 2>&1 || true
+
+ if [ -s /tmp/zizmor-output.txt ]; then
+ echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+ head -100 /tmp/zizmor-output.txt >> $GITHUB_STEP_SUMMARY
+ echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+ else
+ echo "✅ No security issues detected!" >> $GITHUB_STEP_SUMMARY
+ fi
+
+ echo "" >> $GITHUB_STEP_SUMMARY
+ echo "#### 🔗 Resources:" >> $GITHUB_STEP_SUMMARY
+ echo "- [Zizmor GitHub](https://github.com/woodruffw/zizmor)" >> $GITHUB_STEP_SUMMARY
+ echo "- [Security Tab](https://github.com/${{ github.repository }}/security/code-scanning)" >> $GITHUB_STEP_SUMMARY
+ echo "- Results uploaded to GitHub Security tab for detailed analysis" >> $GITHUB_STEP_SUMMARY
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index efd59c3bc7..23d3b1a367 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -19,6 +19,13 @@ repos:
args: [ --fix ]
# Run the formatter.
- id: ruff-format
+ - repo: https://github.com/rhysd/actionlint
+ rev: v1.7.4
+ hooks:
+ - id: actionlint
+ name: Lint GitHub Actions workflows
+ description: "Static checker for GitHub Actions workflow files"
+ files: ^\.github/workflows/.*\.ya?ml$
- repo: local
hooks:
- id: custom-code-checks