Skip to content

Commit 62a5cef

Browse files
authored
ci: enable PyPI trusted publishing (#58)
1 parent 40cd110 commit 62a5cef

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/python-sdk-publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "python-sdk-v*" # Trigger on tags like python-sdk-v0.1.0, python-sdk-v1.0.0
77

88
permissions:
9-
contents: write # For creating GitHub Releases
9+
contents: read
1010

1111
jobs:
1212
test:
@@ -43,6 +43,9 @@ jobs:
4343
publish:
4444
needs: test
4545
runs-on: ubuntu-latest
46+
permissions:
47+
contents: write # For creating GitHub Releases
48+
id-token: write # For PyPI trusted publishing
4649
defaults:
4750
run:
4851
working-directory: packages/python-sdk

0 commit comments

Comments
 (0)