Skip to content

Commit d12bcbd

Browse files
committed
feat: add id-token write permission to github workflow for pypi trusted publishing
1 parent 91bcb4f commit d12bcbd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ permissions:
1717

1818
jobs:
1919
deploy:
20-
2120
runs-on: ubuntu-latest
22-
21+
permissions:
22+
id-token: write
2323
steps:
2424
- uses: actions/checkout@v3
2525
- name: Set up Python
@@ -35,7 +35,7 @@ jobs:
3535
- name: Build package
3636
run: python -m build
3737
- name: Publish package
38-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
38+
uses: pypa/gh-action-pypi-publish@release/v1
3939
with:
4040
user: __token__
4141
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)