Skip to content

Commit 8af0df8

Browse files
authored
Merge pull request #15 from m96-chan/bugfix/cicd
permission miss fix
2 parents 411763c + 9c0ce50 commit 8af0df8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ jobs:
7171
publish-pypi:
7272
needs: build-wheels
7373
runs-on: ubuntu-latest # pypa/gh-action-pypi-publish requires Linux
74+
permissions:
75+
id-token: write
7476

7577
steps:
7678
- name: Download all artifacts
@@ -86,8 +88,6 @@ jobs:
8688
8789
- name: Publish to PyPI
8890
uses: pypa/gh-action-pypi-publish@v1.12.4
89-
permissions:
90-
id-token: write
9191
with:
9292
# user: __token__
9393
# password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/release-testpypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ jobs:
6767
publish-testpypi:
6868
needs: build-wheels
6969
runs-on: ubuntu-latest # pypa/gh-action-pypi-publish requires Linux
70+
permissions:
71+
id-token: write
7072

7173
steps:
7274
- name: Download all artifacts
@@ -82,8 +84,6 @@ jobs:
8284
8385
- name: Publish to TestPyPI
8486
uses: pypa/gh-action-pypi-publish@v1.12.4
85-
permissions:
86-
id-token: write
8787
with:
8888
# user: __token__
8989
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)