Skip to content

Commit 3937893

Browse files
mikolalysenkoclaude
andcommitted
fix release: update PyPI action SHA, add npm provenance permissions
- Update pypa/gh-action-pypi-publish to v1.13.0 (old SHA was invalid) - Add permissions (id-token: write) to npm-publish job for provenance - Configure git HTTPS to fix SSH permission denied during npm provenance Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6af12a7 commit 3937893

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,18 @@ jobs:
187187
npm-publish:
188188
needs: [sync-and-tag, build]
189189
runs-on: ubuntu-latest
190+
permissions:
191+
contents: read
192+
id-token: write
190193
steps:
191194
- name: Checkout
192195
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
193196
with:
194197
ref: v${{ needs.sync-and-tag.outputs.version }}
195198

199+
- name: Configure git for HTTPS
200+
run: git config --global url."https://github.com/".insteadOf "ssh://git@github.com/"
201+
196202
- name: Download all artifacts
197203
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
198204
with:
@@ -283,6 +289,6 @@ jobs:
283289
run: python -m build pypi/socket-patch
284290

285291
- name: Publish to PyPI
286-
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b54a752e1b56a22940bc7640 # v1.12.4
292+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
287293
with:
288294
packages-dir: pypi/socket-patch/dist/

0 commit comments

Comments
 (0)