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: Add SBOM generation to release workflow (#1140)

LearningCircuite64a0284d580
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index cdeeb6a9b3..88ebc00aa5 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -102,6 +102,30 @@ jobs:
echo "changelog_file=changelog.md" >> "$GITHUB_OUTPUT"
+ - name: Generate SBOM (Software Bill of Materials)
+ if: steps.check_release.outputs.exists == 'false'
+ run: |
+ echo "=== Generating Software Bill of Materials ==="
+
+ # Install Trivy for SBOM generation
+ wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo apt-key add -
+ echo "deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/trivy.list
+ sudo apt-get update
+ sudo apt-get install trivy
+
+ # Generate SBOM in SPDX format (JSON)
+ trivy fs --format spdx-json --output sbom-spdx.json .
+ echo "✅ Generated SBOM in SPDX-JSON format"
+
+ # Generate SBOM in CycloneDX format (JSON)
+ trivy fs --format cyclonedx --output sbom-cyclonedx.json .
+ echo "✅ Generated SBOM in CycloneDX format"
+
+ # Display summary
+ echo ""
+ echo "SBOM files generated:"
+ ls -lh sbom-*.json
+
- name: Create GitHub Release using gh CLI
if: steps.check_release.outputs.exists == 'false'
run: |
@@ -111,11 +135,13 @@ jobs:
PRERELEASE_FLAG="--prerelease"
fi
- # Create the release using GitHub CLI
+ # Create the release using GitHub CLI with SBOM attachments
gh release create "${{ steps.version.outputs.tag }}" \
--title "Release ${{ steps.version.outputs.version }}" \
--notes-file changelog.md \
- $PRERELEASE_FLAG
+ $PRERELEASE_FLAG \
+ sbom-spdx.json \
+ sbom-cyclonedx.json
env:
# Use PAT instead of GITHUB_TOKEN to trigger downstream workflows
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
@@ -124,4 +150,5 @@ jobs:
run: |
echo "🎉 Release ${{ steps.version.outputs.version }} created successfully!"
echo "📋 This will trigger PyPI and Docker publishing workflows"
+ echo "📦 SBOM files (SPDX, CycloneDX) attached to release"
echo "🔍 Check the releases page: https://github.com/LearningCircuit/local-deep-research/releases"