Repository navigation
ci: add SBOM generation workflow for releases - #340
Draft
PetrefiedThunder wants to merge 3 commits into
Draft
PetrefiedThunder wants to merge 3 commits into
PetrefiedThunder wants to merge 3 commits into
Conversation
Generate Software Bill of Materials (SBOM) in SPDX and CycloneDX formats using Syft v1.19.0 for each Python SDK release. The SBOM covers Python packages (gateway and SDK) and npm lockfiles. Features: - Generates SBOM on python-v* tag pushes (releases) - Dry-run on pull requests that modify dependency manifests - Publishes SBOM files as GitHub release assets - Uses Anchore Syft 1.19.0 for generation - Third-party actions pinned by commit SHA per repo convention The SBOM provides transparency for security audits and supply chain verification as documented in SECURITY.md. Addresses the SBOM gap identified in security evidence Nov 9, 2026. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Christopher <PetrefiedThunder@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…ronments - Change tag trigger from python-v* to python-sdk-v* to match release-python.yml convention (see PR #339) - Install Python dependencies with uv in virtual environments before scanning to capture resolved transitive dependencies - Scan installed environments (gateway and SDK Python packages) and node_modules (TypeScript SDK and site) separately, then merge into comprehensive SBOM - Update SECURITY.md to document SBOM scope: resolved Python dependencies and npm lockfiles - Note workflow is unvalidated on release tag; will verify on next python-sdk-v* release Before: 7 packages (only a few with exact pins in requirements.txt) After: Expected 50+ packages covering full dependency trees Addresses user feedback on PR #340 about thin coverage and tag pattern mismatch. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Christopher <PetrefiedThunder@users.noreply.github.com>
The site has no npm dependencies (empty package.json), only a Python build script. Remove the site node_modules scan and npm ci step that caused the SBOM workflow to fail. Also remove site/package-lock.json from PR trigger paths since it's not relevant to actual dependencies. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Christopher <PetrefiedThunder@users.noreply.github.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Generate Software Bill of Materials (SBOM) in SPDX and CycloneDX formats using Syft v1.19.0 for each Python SDK release. The SBOM covers Python packages (gateway and SDK) and npm lockfiles.
Related issues
Addresses the SBOM gap identified in security evidence Nov 9, 2026 (attached to this work).
Area and license
spec/,verifier/,sdk/python/,sdk/typescript/,integrations/, andexamples/are Apache-2.0.gateway/contributions are under FSL-1.1-ALv2 (Fair Source).Spec changes
Validation
Local testing
Tested SBOM generation locally with Syft 1.19.0:
The SBOM successfully captures Python packages from requirements.txt and pyproject.toml files, npm packages from package-lock.json files, and GitHub Actions used in workflows.
CI checks
Waiting for CI to run:
Design decisions
SBOM tool selection
Used Anchore Syft 1.19.0 because:
Trigger strategy
python-v*tags): Generate and publish SBOM as release assetsPublishing approach
SBOM files are published as GitHub release assets alongside the Python SDK wheel and sdist. This keeps them close to the release artifacts they describe and makes them easy to discover.
The workflow checks if a release already exists (in case the release was created by another process) and either:
Least-privilege permissions
generate-sbomjob:contents: readonlypublish-sbomjob:contents: write(required for release asset upload)Integration with existing release flow
This workflow complements the existing
release-python.ymlworkflow:python-v*tagsRisk and compatibility
Documentation
Added SBOM section to SECURITY.md explaining:
Limitations and future improvements
Current approach: Source tree SBOM
Future enhancements (not in this PR):
Contributor checklist
.github/workflows/andSECURITY.mdchanges