Skip to content

Commit 55d643f

Browse files
authored
fix permissions configurations (#165)
1 parent 22c0b1c commit 55d643f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/python-publish-test.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ on:
1111
jobs:
1212
release-test-pypi:
1313
# Upload to Test PyPI on every pushed tag.
14-
environment: release-pypi
1514
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
1615
runs-on: ubuntu-latest
16+
environment:
17+
name: release-pypi
18+
url: https://test.pypi.org/p/wombat
19+
permissions:
20+
id-token: write
1721

1822
steps:
1923
- uses: actions/checkout@v4

.github/workflows/python-publish.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ on:
99

1010
jobs:
1111
release-pypi:
12-
environment: release-pypi
1312
# Upload to PyPI on every published release
1413
if: github.event.action == 'published'
14+
environment:
15+
name: release-pypi
16+
url: https://pypi.org/p/wombat
1517
runs-on: ubuntu-latest
18+
permissions:
19+
id-token: write
1620

1721
steps:
1822
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)