We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 257cb72 commit 3243f46Copy full SHA for 3243f46
.github/workflows/release.yml
@@ -79,7 +79,11 @@ jobs:
79
github_token=${{ secrets.GITHUB_TOKEN }}
80
81
pypi-release:
82
+ permissions:
83
+ # IMPORTANT: this permission is mandatory for trusted publishing
84
+ id-token: write
85
runs-on: ubuntu-latest
86
+ environment: pypi-release
87
steps:
88
- name: Checkout
89
uses: actions/checkout@v4
@@ -103,5 +107,3 @@ jobs:
103
107
104
108
- name: Publish the release artifacts to PyPI
105
109
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # pin@release/v1.12.4
106
- with:
- password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments