Skip to content

Commit 41862fc

Browse files
authored
Merge pull request #2355 from pygame-community/ankith26-secure-pypi-release
Use OIDC to publish PyPI releases
2 parents 6d0c42e + 61d3347 commit 41862fc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release-pypi.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
jobs:
88
publish:
99
runs-on: ubuntu-latest
10+
environment: release
11+
permissions:
12+
# IMPORTANT: this permission is mandatory for trusted publishing
13+
id-token: write
1014
steps:
1115
- uses: actions/[email protected]
1216

@@ -21,5 +25,3 @@ jobs:
2125

2226
- name: Publish to PyPI
2327
uses: pypa/gh-action-pypi-publish@release/v1
24-
with:
25-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)