File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -280,6 +280,7 @@ jobs:
280280 # --- Generate provenance for the ACTUAL RELEASE ARTIFACTS ---
281281
282282 - name : Generate SLSA build provenance
283+ id : attest
283284 if : steps.release.outputs.released == 'true'
284285 uses : actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
285286 with :
@@ -297,6 +298,13 @@ jobs:
297298 with :
298299 inputs : " dist/*"
299300
301+ # Copy the SLSA provenance bundle into dist/ AFTER PyPI publish (PyPI must not
302+ # receive it) so that upload-to-gh-release attaches it to the GitHub Release.
303+ # Scorecard's releasesHaveProvenance probe requires a *.intoto.jsonl asset.
304+ - name : Stage provenance bundle for GitHub Release
305+ if : steps.release.outputs.released == 'true'
306+ run : cp "${{ steps.attest.outputs.bundle-path }}" dist/attestation.intoto.jsonl
307+
300308 - name : Publish package distributions to GitHub Releases
301309 uses : python-semantic-release/upload-to-gh-release@0a92b5d7ebfc15a84f9801ebd1bf706343d43711 # v9.8.9
302310 if : steps.release.outputs.released == 'true'
You can’t perform that action at this time.
0 commit comments