Skip to content

Commit 7b4c944

Browse files
easyCZstainless-app[bot]
authored andcommitted
Add id-token permissions to publish job
Added permissions for id-token in publish job.
1 parent 9c38d1f commit 7b4c944

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
publish:
1313
name: publish
1414
runs-on: ubuntu-latest
15+
permissions:
16+
id-token: write
1517

1618
steps:
1719
- uses: actions/checkout@v4
@@ -25,7 +27,6 @@ jobs:
2527
RYE_INSTALL_OPTION: '--yes'
2628

2729
- name: Publish to PyPI
30+
2831
run: |
2932
bash ./bin/publish-pypi
30-
env:
31-
PYPI_TOKEN: ${{ secrets.GITPOD_PYPI_TOKEN || secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)