Skip to content

Commit bc263d9

Browse files
authored
release: switch to attestation (#19)
Signed-off-by: William Woodruff <[email protected]>
1 parent 67d9a3c commit bc263d9

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ on:
66
name: release
77

88
permissions:
9-
# Used to sign the release's artifacts with sigstore-python.
10-
# Used to publish to PyPI with Trusted Publishing.
9+
# Trusted Publishing + attestations
1110
id-token: write
12-
13-
# Used to attach signing artifacts to the published release.
14-
contents: write
11+
attestations: write
1512

1613
jobs:
1714
pypi:
@@ -35,8 +32,8 @@ jobs:
3532
- name: publish
3633
uses: pypa/gh-action-pypi-publish@release/v1
3734

38-
- name: sign
39-
uses: sigstore/[email protected]
35+
- name: attest
36+
uses: actions/attest@v1
4037
with:
41-
inputs: ./dist/*.tar.gz ./dist/*.whl
42-
release-signing-artifacts: true
38+
subject-path: ./dist/*.tar.gz ./dist/*.whl
39+
predicate-type: 'https://docs.pypi.org/attestations/publish/v1'

0 commit comments

Comments
 (0)