Skip to content

Commit

Permalink
Change: Use trusted publisher upload for PyPI
Browse files Browse the repository at this point in the history
[Trusted publisher](https://docs.pypi.org/trusted-publishers/) improves
the security of the deployment.
  • Loading branch information
bjoernricks committed Jan 25, 2024
1 parent 3ba0979 commit 2f7388c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ on:

jobs:
deploy:
permissions:
id-token: write
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/troubadix/
steps:
- name: Build and publish to PyPI
uses: greenbone/actions/pypi-upload@v3
with:
pypi-token: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 2f7388c

Please sign in to comment.