Skip to content

Commit 3757b87

Browse files
committed
CI: Add attesations
1 parent 6c30a93 commit 3757b87

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/wheels.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ jobs:
115115
runs-on: ubuntu-latest
116116
environment: "Package deployment"
117117
needs: [pre-publish]
118-
if: github.event_name == 'release'
118+
if: github.event_name == 'release' && github.event.action == 'published'
119+
permissions:
120+
id-token: write
121+
attestations: write
122+
119123
steps:
120124
- uses: actions/download-artifact@v3
121125
with:
@@ -124,4 +128,12 @@ jobs:
124128
run: |
125129
mv dist/*/*.{tar.gz,whl} dist
126130
rmdir dist/*/
131+
132+
- name: Generate artifact attestations
133+
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
134+
with:
135+
subject-path: "dist/nipy_gradunwarp-*"
136+
127137
- uses: pypa/gh-action-pypi-publish@release/v1
138+
with:
139+
attestations: true

0 commit comments

Comments
 (0)