Skip to content

Commit 291a0bd

Browse files
committed
Publish job needs contents:read alongside id-token:write
Setting permissions on the job replaces the defaults, so checkout lost repository read access and failed on the private repo.
1 parent 8544311 commit 291a0bd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
environment: pypi
2323
permissions:
2424
id-token: write
25+
contents: read
2526
steps:
2627
- uses: actions/checkout@v4
2728
- uses: actions/setup-python@v5

0 commit comments

Comments
 (0)