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: resolve OSSF Scorecard alert #5609 (pip not pinned by hash)

LearningCircuit5ce4429a98e4
diff --git a/.github/SECURITY_SCORECARD.md b/.github/SECURITY_SCORECARD.md
index 3d814d9408..c02112ed64 100644
--- a/.github/SECURITY_SCORECARD.md
+++ b/.github/SECURITY_SCORECARD.md
@@ -8,7 +8,7 @@ and documents any accepted risks or false positives.
**Summary:**
- ✅ 196/196 GitHub Actions pinned by SHA
- ✅ 4/4 Container images pinned by digest
-- ⚠️ 0/20 pip commands pinned by hash (version-pinned only - accepted risk)
+- ⚠️ 0/19 pip commands pinned by hash (version-pinned only - accepted risk)
- ⚠️ 21/24 npm commands pinned (3 are operational commands)
- ⚠️ 1 false positive for downloadThenRun
@@ -39,7 +39,7 @@ node:20-alpine@sha256:bcd88137d802e2482c9df3cdec71e0431857ebbbdba6973776b5593214
### pip install: VERSION-PINNED (Accepted Risk) ⚠️
Scorecard flags `pip install package==version` because it prefers hash pinning.
-All 20 flagged pip commands use exact version pinning.
+All 19 flagged pip commands use exact version pinning.
**Flagged commands and their status:**
@@ -57,7 +57,10 @@ All 20 flagged pip commands use exact version pinning.
| semgrep.yml | 42 | `pip install semgrep==1.87.0` | Version-pinned |
| update-precommit-hooks.yml | 35-36 | `pip install pip==25.0 pre-commit-update==0.6.2` | Version-pinned |
| validate-image-pinning.yml | 74 | `pip install pyyaml==6.0.2` | Version-pinned |
-| zizmor-security.yml | 50 | `pip install zizmor==1.6.0` | Version-pinned |
+
+**Note:** `zizmor-security.yml` was converted to use the official `zizmorcore/zizmor-action`,
+which runs zizmor via a container with internal hash verification.
+This resolves OSSF Scorecard alert #5609.
**Why we don't use hash pinning:**
diff --git a/.github/workflows/zizmor-security.yml b/.github/workflows/zizmor-security.yml
index f564f1ae8a..1cdc25eabe 100644
--- a/.github/workflows/zizmor-security.yml
+++ b/.github/workflows/zizmor-security.yml
@@ -40,53 +40,22 @@ jobs:
with:
persist-credentials: false
- - name: Set up Python
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
- with:
- python-version: '3.12'
-
- - name: Install zizmor
- run: |
- pip install zizmor==1.6.0
-
- name: Run zizmor security scan
- run: |
- # Strict mode: fail on low severity or higher issues
- # Informational findings are logged but don't fail the build
- # Generate SARIF for GitHub Security tab
- zizmor --format sarif .github/workflows/ > zizmor-results.sarif
- # Run with --min-severity=low to only fail on actual security issues
- # (informational findings are often false positives for safe patterns)
- zizmor --min-severity=low .github/workflows/ || {
- echo "::error::Zizmor detected security issues in GitHub Actions workflows"
- exit 1
- }
-
- - name: Upload zizmor results to GitHub Security tab
- uses: github/codeql-action/upload-sarif@32f7c15247fa6542dc765bd40f6a15dc2caeed89 # v4.31.2
- if: always()
- with:
- sarif_file: zizmor-results.sarif
- category: zizmor
-
- - name: Upload zizmor results as artifact
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
- if: always()
+ uses: zizmorcore/zizmor-action@135698455da5c3b3e55f73f4419e481ab68cdd95 # v1
with:
- name: zizmor-scan-results
- path: zizmor-results.sarif
- retention-days: 7 # Reduced for security
+ inputs: .github/workflows/
+ min-severity: low
+ advanced-security: true
- - name: Run zizmor with human-readable output
+ - name: Display scan summary
if: always()
run: |
{
- echo "## 🔍 Zizmor GitHub Actions Security Scan"
+ echo "## Zizmor GitHub Actions Security Scan"
echo ""
echo "### What is Zizmor?"
- echo "Zizmor is a modern security linter for GitHub Actions workflows that detects:"
+ echo "Zizmor is a security linter for GitHub Actions workflows that detects:"
echo ""
- echo "#### 🎯 Security Vulnerabilities Detected:"
echo "- **Template Injection**: Attacker-controlled input in expressions"
echo "- **ArtiPACKED**: Credentials leaked in workflow artifacts"
echo "- **Vulnerable Actions**: Third-party actions with known CVEs"
@@ -96,25 +65,7 @@ jobs:
echo "- **Unpinned Actions**: Mutable action references"
echo "- **Cache Poisoning**: Unsafe cache usage patterns"
echo ""
- 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 "\`\`\`"
- head -100 /tmp/zizmor-output.txt
- echo "\`\`\`"
- } >> "$GITHUB_STEP_SUMMARY"
- else
- echo "✅ No security issues detected!" >> "$GITHUB_STEP_SUMMARY"
- fi
-
- {
- echo ""
- echo "#### 🔗 Resources:"
+ echo "### Resources"
echo "- [Zizmor GitHub](https://github.com/woodruffw/zizmor)"
echo "- [Security Tab](https://github.com/${{ github.repository }}/security/code-scanning)"
echo "- Results uploaded to GitHub Security tab for detailed analysis"