Skip to content

Commit 7d64d6d

Browse files
committed
pypi publish permissions updates.
1 parent b7ee326 commit 7d64d6d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/pypi_publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ on:
99

1010
jobs:
1111
publish:
12+
name: Upload release to PyPI
1213
runs-on: ubuntu-latest
14+
# IMPORTANT: this permission is mandatory for trusted publishing.
15+
permissions:
16+
id-token: write
1317
steps:
1418
# Checks-out your repository under $GITHUB_WORKSPACE , so your workflow can access it.
1519
- name: Checkout
@@ -21,4 +25,4 @@ jobs:
2125
run: python3 -m pip install --upgrade build && python3 -m build
2226
# Publish the python package to pypi.org.
2327
- name: Publish Package to PyPI
24-
uses: pypa/gh-action-pypi-publish@release/v1
28+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)