Skip to content

Commit 4d296d4

Browse files
committed
Updates the release action for trusted publishing
1 parent 965cdc8 commit 4d296d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,14 @@ jobs:
5454
name: Publish Python distributions to PyPI
5555
runs-on: ubuntu-latest
5656
environment:
57-
name: pypi
57+
name: release
5858
url: https://pypi.org/p/vendetect
5959
needs: [build, generate-provenance]
6060
permissions:
6161
# Used to sign the release's artifacts with sigstore-python.
6262
# Used to publish to PyPI with Trusted Publishing.
63-
id-token: write
63+
id-token: write # For trusted publishing + codesigning.
64+
contents: write # For attaching signing artifacts to the release.
6465
steps:
6566
- name: Download distributions
6667
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0

0 commit comments

Comments
 (0)