Skip to content

Commit

Permalink
release: switch to attestation
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
woodruffw committed Jun 10, 2024
1 parent 67d9a3c commit 09ad2f3
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ on:
name: release

permissions:
# Used to sign the release's artifacts with sigstore-python.
# Used to publish to PyPI with Trusted Publishing.
# Trusted Publishing + attestations
id-token: write

# Used to attach signing artifacts to the published release.
contents: write
attestations: write

jobs:
pypi:
Expand All @@ -35,8 +32,8 @@ jobs:
- name: publish
uses: pypa/gh-action-pypi-publish@release/v1

- name: sign
uses: sigstore/gh-action-sigstore-python@v2.1.1
- name: attest
uses: actions/attest@v1
with:
inputs: ./dist/*.tar.gz ./dist/*.whl
release-signing-artifacts: true
subject-path: ./dist/*.tar.gz ./dist/*.whl
predicate-type: 'https://docs.pypi.org/attestations/publish/v1'

0 comments on commit 09ad2f3

Please sign in to comment.