Skip to content

Commit 6b6fb54

Browse files
committed
fix: add missing oidc testpypi and pypi upload permissions
1 parent cf93107 commit 6b6fb54

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

{{cookiecutter.project_name}}/.github/workflows/release-python.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
needs: get_tag
4141
outputs:
4242
tag: {{ "${{ needs.get_tag.outputs.tag }}" }}
43+
permissions:
44+
id-token: write
4345
steps:
4446
- name: Checkout code
4547
uses: actions/checkout@v4
@@ -77,7 +79,8 @@ jobs:
7779
name: Publish to Production PyPI and GitHub
7880
runs-on: ubuntu-latest
7981
needs: build_and_testpypi
80-
82+
permissions:
83+
id-token: write
8184
steps:
8285
- name: Checkout code
8386
uses: actions/checkout@v4

0 commit comments

Comments
 (0)