Skip to content

Commit

Permalink
Merge pull request #498 from pytest-dev/RonnyPfannschmidt-oidc-permis…
Browse files Browse the repository at this point in the history
…sions

add pypi trusted publishing permissions
  • Loading branch information
RonnyPfannschmidt committed Apr 21, 2024
2 parents e3b41ed + 11a75a9 commit 05d8172
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Expand Up @@ -120,7 +120,8 @@ jobs:
deploy:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pytest-dev/pluggy'
runs-on: ubuntu-latest

permissions:
id-token: write
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -140,6 +141,3 @@ jobs:

- name: Publish package
uses: pypa/gh-action-pypi-publish@v1.8.14
with:
user: __token__
password: ${{ secrets.pypi_token }}

0 comments on commit 05d8172

Please sign in to comment.