Skip to content

Commit 7c22adb

Browse files
xiaguanclaude
andauthored
fix(ci): add id-token permission and unify PyPI token for release workflows (#1004)
- Add id-token: write permission to both release workflows to support PyPI Trusted Publishing (OIDC authentication) - Unify PyPI API token usage: both CUDA and non-CUDA releases now use the same PYPI_API_TOKEN secret instead of separate tokens - This resolves the "missing or insufficient OIDC token permissions" error during PyPI package publishing Co-authored-by: Claude <[email protected]>
1 parent d928c35 commit 7c22adb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/release-non-cuda.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ jobs:
8989
runs-on: ubuntu-22.04
9090
permissions:
9191
contents: write
92+
id-token: write
9293
steps:
9394
- name: Checkout source
9495
uses: actions/checkout@v4
@@ -119,5 +120,5 @@ jobs:
119120
uses: pypa/gh-action-pypi-publish@release/v1
120121
with:
121122
packages-dir: mooncake-wheel/dist-release/
122-
password: ${{ secrets.PYPI_API_TOKEN_NON_CUDA }}
123+
password: ${{ secrets.PYPI_API_TOKEN }}
123124

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
runs-on: ubuntu-22.04
109109
permissions:
110110
contents: write
111+
id-token: write
111112
steps:
112113
- name: Checkout source
113114
uses: actions/checkout@v4

0 commit comments

Comments
 (0)