Repository navigation
Conversation
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
… file Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
…e protocol Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
This branch has not been 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
Task 0.6 of the 0.11.0 plan (#367): each GitHub Release carries a CycloneDX SBOM of the runtime dependencies, and PyPI
attestations stay on.
.github/workflows/release.yml: a newsbomjob withcontents: readonly exports the frozen runtime dependencies(
uv export --frozen --no-dev --no-default-groups --no-emit-project) and builds a CycloneDX 1.5 SBOM with a pinnedcyclonedx-bom==9.0.2, uploaded as a one-day artifact. Thepublishjob (needs: sbom) downloads it into$RUNNER_TEMP/sbom, outsidedist/(the PyPI action uploads every file indist/), and attaches it to the GitHubRelease. No third-party tool runs in the job that holds
id-token: write.pypa/gh-action-pypi-publishv1.14.3 (the pinned SHA) declaresattestationswithdefault: 'true'; the workflow does not override it.skills/release/SKILL.md: the release assets now name the SBOM.tests/test_ci_layout.py: the SBOM job, its permissions, the artifact hand-off, the release asset and thesmoke-test command are pinned.
The SBOM generated locally from the current lock is valid CycloneDX JSON with five components, including
starletteand
packaging.This pull request is stacked on the 0.11.0 integration branch (#368 to #375); review the last three commits.
Red evidence
tests/test_ci_layout.py::test_release_publishes_an_sbom_and_keeps_attestations_onRED (assertion under tests/)id-token: writetests/test_ci_layout.py::test_release_sbom_is_built_outside_the_publishing_jobRED (assertion under tests/):assert 'actions/download-artifact' in ...uv pip --python ... install, which uv rejectstests/test_ci_layout.py::test_release_smoke_test_installs_with_a_valid_uv_commandRED (assertion under tests/)Follow-up outside this change
The wheel smoke test installs
fastapi,pydantic-settings,uvicornandhttpxfrom PyPI without hashes inside thepublishjob. Moving the smoke test to a job without publishing rights is tracked separately.Verification
uvx --from actionlint-py==1.7.12.25 actionlint(clean);uvx zizmor@1.32.0 --offline --min-severity low .github/workflows(no findings);uv run ruff check,uv run ruff format --check,uv run pyright(0 errors);uv run pytest -q -n 4 tests/test_ci_layout.py tests/docs(284 passed).