File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,12 @@ jobs:
245245
246246 build/pythonbuild validate-distribution ${EXTRA_ARGS} dist/*.tar.zst
247247
248+ - name : Generate attestations
249+ uses : actions/attest-build-provenance@v2
250+ if : ${{ github.ref == 'refs/heads/main' }}
251+ with :
252+ subject-path : dist/*
253+
248254 - name : Upload Distribution
249255 if : ${{ ! matrix.dry-run }}
250256 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 2121permissions :
2222 contents : write
2323 packages : write
24+ # Permissions used for actions/attest-build-provenance
25+ id-token : write
26+ attestations : write
2427
2528jobs :
2629 release :
7578 # Uploading the relevant artifact to the GitHub release.
7679 - run : just release-run ${{ secrets.GITHUB_TOKEN }} ${{ github.event.inputs.sha }} ${{ github.event.inputs.tag }}
7780 if : ${{ github.event.inputs.dry-run == 'false' }}
81+
82+ - name : Generate attestations
83+ uses : actions/attest-build-provenance@v2
84+ if : ${{ github.event.inputs.dry-run == 'false' }}
85+ with :
86+ subject-path : dist/*
You can’t perform that action at this time.
0 commit comments