Skip to content

Commit ab339c7

Browse files
committed
Use trusted publishing
1 parent ae14557 commit ab339c7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ jobs:
6060
startsWith(github.event.ref, 'refs/tags') &&
6161
github.repository == 'pytest-dev/pytest-describe'
6262
runs-on: ubuntu-latest
63+
environment: pypi
64+
permissions:
65+
id-token: write
66+
contents: read
6367

6468
steps:
6569
- name: Checkout repository
@@ -76,5 +80,4 @@ jobs:
7680
- name: Publish package
7781
uses: pypa/gh-action-pypi-publish@release/v1
7882
with:
79-
user: __token__
80-
password: ${{ secrets.pypi_token }}
83+
attestations: true

0 commit comments

Comments
 (0)