Skip to content

Commit b80ad7c

Browse files
authored
fix: update permissions for PyPI publishing workflow (#4)
1 parent 7a81624 commit b80ad7c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ jobs:
1010
runs-on: ubuntu-latest
1111
environment: pypi
1212
permissions:
13-
# IMPORTANT: this permission is mandatory for Trusted Publishing
14-
id-token: write
13+
id-token: write # for PyPI Trusted Publishing
14+
contents: read # for actions/checkout to access private repo
1515
steps:
1616
- uses: actions/checkout@v4
17-
17+
1818
- name: Setup uv python package manager
1919
uses: astral-sh/setup-uv@v6
2020
with:
2121
python-version: "3.12"
2222
enable-cache: true
23-
23+
2424
- name: Build package distributions
2525
run: |
2626
uv build
27-
27+
2828
- name: Publish package distributions to PyPI
2929
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)