Skip to content

ci: generate SBOM and include it in the wheel#82

Merged
milesdai merged 1 commit intomainfrom
milesdai/supply-chain
Apr 18, 2026
Merged

ci: generate SBOM and include it in the wheel#82
milesdai merged 1 commit intomainfrom
milesdai/supply-chain

Conversation

@milesdai
Copy link
Copy Markdown
Collaborator

@milesdai milesdai commented Apr 18, 2026

This commit adds machinery to generate a CycloneDX SBOM file during the release flow. This file is automatically included in the built wheel by hatchling as specified in PEP 770. There is a placeholder SBOM file in the root directory to satisfy hatchling when building outside the release flow.


Summary by cubic

Generates a CycloneDX SBOM during the release flow and bundles it into the wheel per PEP 770. Adds CI steps and hatchling config, with a placeholder SBOM for non-release builds.

  • New Features
    • New Generate SBOM job in .github/workflows/sdk-release.yml using uv/uvx and cyclonedx-bom==7.3.0 to create sbom.cdx.json.
    • SBOM is uploaded as an artifact and downloaded in the build job; build depends on SBOM generation.
    • pyproject.toml sets sbom-files = ["sbom.cdx.json"] and requires hatchling>=1.28.0 so the wheel includes the SBOM (PEP 770).
    • Adds a placeholder sbom.cdx.json to keep local and non-release builds working.

Written for commit 50fb7b1. Summary will update on new commits.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 3 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="pyproject.toml">

<violation number="1" location="pyproject.toml:7">
P2: `sbom-files` requires a newer hatchling, but `build-system.requires` does not set a minimum version. Add a lower bound (>=1.28.0) to avoid build-time config failures in environments that resolve older hatchling versions.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.

Comment thread pyproject.toml
This commit adds machinery to generate a CycloneDX SBOM file during the
release flow. This file is automatically included in the built wheel by
hatchling as specified in PEP 770. There is a placeholder SBOM file in
the root directory to satisfy hatchling when building outside the
release flow.
@milesdai milesdai force-pushed the milesdai/supply-chain branch from 0880b1a to 50fb7b1 Compare April 18, 2026 21:35
@milesdai milesdai merged commit df93c2b into main Apr 18, 2026
2 checks passed
@milesdai milesdai deleted the milesdai/supply-chain branch April 18, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant