Skip to content

Commit 85c1d3d

Browse files
committed
Fix publish workflow: add contents read permission for private repo
1 parent fc1cb3b commit 85c1d3d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
test:
912
runs-on: ubuntu-latest
@@ -34,6 +37,7 @@ jobs:
3437
runs-on: ubuntu-latest
3538
environment: pypi
3639
permissions:
40+
contents: read
3741
id-token: write
3842
steps:
3943
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)