Skip to content

Commit e0fc3ed

Browse files
authored
Merge pull request #288 from authzed/use-trusted-publisher
Use trusted publisher configuration for pypi
2 parents 5c45fc5 + 65cec90 commit e0fc3ed

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ jobs:
88
publish:
99
name: "Build & Publish"
1010
runs-on: "ubuntu-latest"
11+
# Specifying a GitHub environment is optional, but strongly encouraged
12+
environment: "pypi"
13+
permissions:
14+
# IMPORTANT: this permission is mandatory for Trusted Publishing
15+
id-token: "write"
1116
steps:
1217
- uses: "actions/checkout@v5"
1318
- uses: "astral-sh/setup-uv@v6"
@@ -23,5 +28,3 @@ jobs:
2328
run: "uv build"
2429
- name: "Publish"
2530
uses: "pypa/gh-action-pypi-publish@release/v1"
26-
with:
27-
password: "${{ secrets.PYPI_API_TOKEN }}"

0 commit comments

Comments
 (0)