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 OSSF Scorecard security best practices analysis

LearningCircuitc976836689ff
diff --git a/.github/workflows/ossf-scorecard.yml b/.github/workflows/ossf-scorecard.yml
new file mode 100644
index 0000000000..36ab939cb0
--- /dev/null
+++ b/.github/workflows/ossf-scorecard.yml
@@ -0,0 +1,90 @@
+name: OSSF Scorecard
+
+on:
+ # Run on branches (for analysis purposes)
+ branch_protection_rule:
+ # Run on schedule
+ schedule:
+ # Run weekly on Monday at 8 AM UTC
+ - cron: '0 8 * * 1'
+ # Allow manual runs
+ workflow_dispatch:
+ # Run on push to default branch
+ push:
+ branches: [ main ]
+
+# Declare default permissions as read only.
+permissions: read-all
+
+jobs:
+ analysis:
+ name: OSSF Security Scorecard Analysis
+ runs-on: ubuntu-latest
+ permissions:
+ # Needed to upload the results to code-scanning dashboard.
+ security-events: write
+ # Needed to publish results and get a badge
+ id-token: write
+ # Needed for private repositories
+ contents: read
+ actions: read
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v5
+ with:
+ persist-credentials: false
+
+ - name: Run OSSF Scorecard analysis
+ uses: ossf/[email protected]
+ with:
+ results_file: results.sarif
+ results_format: sarif
+ # Publish results to enable scorecard badges
+ publish_results: true
+
+ - name: Upload OSSF Scorecard results to GitHub Security
+ uses: github/codeql-action/upload-sarif@v4
+ with:
+ sarif_file: results.sarif
+ category: ossf-scorecard
+
+ - name: Upload OSSF Scorecard results as artifact
+ uses: actions/upload-artifact@v4
+ with:
+ name: ossf-scorecard-results
+ path: results.sarif
+ retention-days: 90
+
+ - name: Display OSSF Scorecard summary
+ if: always()
+ run: |
+ echo "## OSSF Scorecard Security Analysis" >> $GITHUB_STEP_SUMMARY
+ echo "" >> $GITHUB_STEP_SUMMARY
+ echo "✅ OSSF Scorecard analysis completed" >> $GITHUB_STEP_SUMMARY
+ echo "" >> $GITHUB_STEP_SUMMARY
+ echo "### What is OSSF Scorecard?" >> $GITHUB_STEP_SUMMARY
+ echo "OSSF Scorecard checks your repository for security best practices including:" >> $GITHUB_STEP_SUMMARY
+ echo "- **Branch Protection**: Ensures main branch has protection rules" >> $GITHUB_STEP_SUMMARY
+ echo "- **Code Review**: Checks that code changes are reviewed" >> $GITHUB_STEP_SUMMARY
+ echo "- **Signed Releases**: Verifies releases are cryptographically signed" >> $GITHUB_STEP_SUMMARY
+ echo "- **SAST Tools**: Confirms static analysis tools are enabled" >> $GITHUB_STEP_SUMMARY
+ echo "- **Dependency Updates**: Checks for automated dependency updates" >> $GITHUB_STEP_SUMMARY
+ echo "- **Vulnerability Alerts**: Verifies security alerts are enabled" >> $GITHUB_STEP_SUMMARY
+ echo "- **License**: Ensures repository has a license" >> $GITHUB_STEP_SUMMARY
+ echo "- **CI Tests**: Checks for automated testing" >> $GITHUB_STEP_SUMMARY
+ echo "- **Security Policy**: Verifies SECURITY.md exists" >> $GITHUB_STEP_SUMMARY
+ echo "- **Dangerous Workflows**: Detects potentially dangerous GitHub Actions" >> $GITHUB_STEP_SUMMARY
+ echo "" >> $GITHUB_STEP_SUMMARY
+ echo "📊 **Results:**" >> $GITHUB_STEP_SUMMARY
+ echo "- Detailed results uploaded to GitHub Security tab" >> $GITHUB_STEP_SUMMARY
+ echo "- SARIF file available in artifacts" >> $GITHUB_STEP_SUMMARY
+ echo "" >> $GITHUB_STEP_SUMMARY
+ echo "🔗 **Links:**" >> $GITHUB_STEP_SUMMARY
+ echo "- [Security Tab](https://github.com/${{ github.repository }}/security/code-scanning)" >> $GITHUB_STEP_SUMMARY
+ echo "- [OSSF Scorecard Badge](https://securityscorecards.dev/viewer/?uri=github.com/${{ github.repository }})" >> $GITHUB_STEP_SUMMARY
+ echo "" >> $GITHUB_STEP_SUMMARY
+ echo "💡 **Add Badge to README:**" >> $GITHUB_STEP_SUMMARY
+ echo '```markdown' >> $GITHUB_STEP_SUMMARY
+ echo "[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/${{ github.repository }}/badge)](https://securityscorecards.dev/viewer/?uri=github.com/${{ github.repository }})" >> $GITHUB_STEP_SUMMARY
+ echo '```' >> $GITHUB_STEP_SUMMARY