Skip to content

Commit

Permalink
Update py-publish.yml to generate build provenance attestations (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxianpeng authored Jun 11, 2024
1 parent 30f06b4 commit 02492e0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/py-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:

permissions:
contents: read
id-token: write
attestations: write

jobs:
publish-to-pypi:
Expand All @@ -29,6 +31,11 @@ jobs:
- name: Check distribution
run: twine check dist/*

- name: Create attestations
uses: actions/attest-build-provenance@v1
with:
subject-path: 'dist/*'

- name: Publish package (to TestPyPI)
if: github.event_name == 'workflow_dispatch' && startsWith(github.repository, 'cpp-linter')
env:
Expand Down

0 comments on commit 02492e0

Please sign in to comment.