Skip to content

Commit c9bf6fe

Browse files
committed
add post-hoc verification action
1 parent ebe5813 commit c9bf6fe

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Attest existing release assets ✅
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: Git tag of the existing release (e.g., v0.25.0)
8+
required: true
9+
type: string
10+
11+
permissions:
12+
contents: write
13+
id-token: write
14+
attestations: write
15+
16+
jobs:
17+
attest:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Prepare dist directory
21+
run: mkdir -p dist
22+
23+
- name: Download assets from GitHub Release
24+
env:
25+
GITHUB_TOKEN: ${{ github.token }}
26+
run: >-
27+
gh release download
28+
'${{ inputs.tag }}'
29+
--repo '${{ github.repository }}'
30+
-D dist/
31+
-p '*.whl' -p '*.tar.gz'
32+
33+
- name: List downloaded files
34+
run: ls -lah dist || true
35+
36+
- name: Generate build provenance attestations
37+
uses: actions/attest-build-provenance@v1
38+
with:
39+
subject-path: |
40+
dist/*.tar.gz
41+
dist/*.whl

0 commit comments

Comments
 (0)