Skip to content

Commit 965cc93

Browse files
bloveclaude
andcommitted
fix(ci): grant release-provenance build job write perms; pin pypa publish action
- build-artifacts needs contents: write for 'gh release upload' - pin pypa/gh-action-pypi-publish to release/v1 SHA (Pinned-Dependencies) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 98f7432 commit 965cc93

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878

7979
- name: Publish to PyPI (real release — OIDC trusted publishing)
8080
if: ${{ inputs.dry_run == false }}
81-
uses: pypa/gh-action-pypi-publish@release/v1
81+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
8282
with:
8383
packages-dir: packages/threadplane-middleware/dist
8484
attestations: true

.github/workflows/release-provenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build-artifacts:
1212
runs-on: ubuntu-latest
1313
permissions:
14-
contents: read
14+
contents: write # gh release upload attaches tarballs to the release
1515
outputs:
1616
hashes: ${{ steps.hash.outputs.hashes }}
1717
env:

0 commit comments

Comments
 (0)