Skip to content

Commit 1325155

Browse files
committed
core: fix publish pypi rights
1 parent 2ea0c53 commit 1325155

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish_pypi.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
1113
steps:
1214
- name: Checkout the code
1315
uses: actions/checkout@v4
@@ -18,7 +20,7 @@ jobs:
1820
uses: astral-sh/setup-uv@v4
1921
with:
2022
version: "0.5.11"
21-
enable-cache: true
23+
enable-cache: false
2224
python-version: "3.10"
2325

2426
- name: Lock and Sync Dependencies
@@ -32,4 +34,4 @@ jobs:
3234
3335
- name: Publish to PyPI
3436
run: |
35-
uv publish
37+
uv publish --token ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)