Skip to content

Commit 0e84011

Browse files
authored
Update py-publish.yml to generate build provenance attestations
ref to #28
1 parent 30f06b4 commit 0e84011

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/py-publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55

66
permissions:
77
contents: read
8+
id-token: write
9+
attestations: write
810

911
jobs:
1012
publish-to-pypi:
@@ -29,6 +31,11 @@ jobs:
2931
- name: Check distribution
3032
run: twine check dist/*
3133

34+
- name: Create attestations
35+
uses: actions/attest-build-provenance@v1
36+
with:
37+
subject-path: 'dist/*'
38+
3239
- name: Publish package (to TestPyPI)
3340
if: github.event_name == 'workflow_dispatch' && startsWith(github.repository, 'cpp-linter')
3441
env:

0 commit comments

Comments
 (0)