Skip to content

add an sbom attestation json - #301

Open
mattip wants to merge 2 commits into
MacPython:mainfrom
mattip:attestation
Open

mattip wants to merge 2 commits into
MacPython:mainfrom
mattip:attestation

Conversation

@mattip

@mattip mattip commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator
  • I updated the package version in pyproject.toml

This adds a python script to build a CycloneDX *.cdx.json attestation file in three steps:

  • snapshot of the source code before the build (text/x-diff of the git diff before compilation)
  • collect right after the build to get build info (os, compilers, any linked shared objects, linked in shared objects or snippets)
  • inject when building the wheel to turn the data into a json and add it to the wheel.

I guided Claude to produce the script. I needed a script because the regular auditwheel tool does not collect data on the build process itself, like patches, what we statically link to, and compilers.

Once CI runs I will attach the output here for review

@mattip

mattip commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

The sboms go to scipy_openblas64-0.3.34.481.7.dist-info/sboms/scipy-openblas.cdx.json. Here is the sbom from the android posix build
scipy-openblas.cdx.json from android

And here is the one from a windows-x86-64 build
scipy-openblas.cdx.json from windows-x86-64

cc @rgommers, thoughts?

This branch has not been deployed

No deployments
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