Skip to content

Commit 3e67f79

Browse files
Fix release workflow to use Trusted Publishing
- Add id-token: write permission for OIDC authentication - Add contents: write permission for releases and commits - Remove explicit password parameter that was disabling Trusted Publishing Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b6826b8 commit 3e67f79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release-autowrap.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
jobs:
1414
build_publish:
1515
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: write # Required for Trusted Publishing (OIDC)
18+
contents: write # Required for creating releases and committing
1619
steps:
1720
- uses: actions/checkout@v4
1821

@@ -55,7 +58,6 @@ jobs:
5558
- name: Publish package to PyPI
5659
uses: pypa/gh-action-pypi-publish@release/v1
5760
with:
58-
password: ${{ secrets.PYPI_RELEASE_AUTOWRAP }}
5961
packages-dir: ${{ github.workspace }}/dist
6062

6163
- name: Create github release

0 commit comments

Comments
 (0)