Skip to content

Commit

Permalink
Update deploy-pypi.yml
Browse files Browse the repository at this point in the history
## What

Use trusted publisher upload for PyPI

## Why
[Trusted publisher](https://docs.pypi.org/trusted-publishers/) improves the security of the deployment

## References

DEVOPS-937
  • Loading branch information
bjoernricks authored Jan 25, 2024
1 parent 3ba0979 commit 379bccc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/deploy-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ on:

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

0 comments on commit 379bccc

Please sign in to comment.