Skip to content

Commit 5100ece

Browse files
fix: add contents:read permission for checkout in private repo
1 parent f25a7eb commit 5100ece

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
environment: pypi
1111
permissions:
12+
contents: read # checkout private repo
1213
id-token: write # trusted publishing
1314
steps:
1415
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.2.2

.github/workflows/test-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
environment: testpypi
1010
permissions:
11+
contents: read # checkout private repo
1112
id-token: write # trusted publishing
1213
steps:
1314
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.2.2

0 commit comments

Comments
 (0)