Skip to content

Commit

Permalink
python: align with actions/starter-workflows#2345
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
woodruffw committed Mar 19, 2024
1 parent 46247d5 commit 7bec6da
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,9 @@ on:
release:
types: [published]

permissions:
contents: read

jobs:
release-build:
runs-on: ubuntu-latest
Expand All @@ -434,11 +437,21 @@ jobs:

pypi-publish:
runs-on: ubuntu-latest

needs:
- release-build

permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

# Dedicated environments with protections for publishing are strongly recommended.
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
environment:
name: pypi
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
# url: https://pypi.org/p/YOURPROJECT

steps:
- name: Retrieve release distributions
uses: {% data reusables.actions.action-download-artifact %}
Expand Down

0 comments on commit 7bec6da

Please sign in to comment.