Skip to content

Commit e1a9d09

Browse files
authored
Update publish.yml to modify permissions and inputs
Added id-token permission for publish job and removed password input for PyPI publish step.
1 parent 803f3a5 commit e1a9d09

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: read
13+
id-token: write
1314
steps:
1415
- name: Checkout code
1516
uses: actions/checkout@v6
@@ -33,5 +34,3 @@ jobs:
3334
3435
- name: Publish distribution to PyPI
3536
uses: pypa/gh-action-pypi-publish@release/v1
36-
with:
37-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)