Skip to content

Commit e9829a6

Browse files
authored
Merge pull request #33 from FGRCL/refactor-workflows
add another permission
2 parents 919e5b7 + 1460c14 commit e9829a6

4 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/publish-test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
matrix:
1111
python-version: [ "3.10" ]
1212
permissions:
13+
contents: read
1314
id-token: write
1415
steps:
1516
- uses: actions/checkout@v4
@@ -23,7 +24,7 @@ jobs:
2324
pdm install --global --project .
2425
- name: publish
2526
run: |
26-
pdm publish --repository https://test.pypi.org/legacy/
27+
pdm publish --repository testpypi
2728
2829
2930
publish-docs:

.github/workflows/publish.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
matrix:
1212
python-version: [ "3.10" ]
1313
permissions:
14+
contents: read
1415
id-token: write
1516
steps:
1617
- uses: actions/checkout@v4

.github/workflows/release-staging.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
publish:
1818
name: Publish staging release
1919
permissions:
20+
contents: read
2021
id-token: write
2122
pages: write
2223
uses: ./.github/workflows/publish-test.yaml

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ jobs:
99
publish:
1010
name: Publish release
1111
permissions:
12+
contents: read
1213
id-token: write
1314
uses: ./.github/workflows/publish.yaml

0 commit comments

Comments
 (0)