Skip to content

Commit 67c3fe7

Browse files
authored
feat: support release attestations (#517)
## Summary Reverts #514 This adds back support for release attestations after asset uploads. Turns out extended glob is not supported via subject-path given how the action searches the directories and applies the glob, so instead we declare multiple simple globs since subject-path supports that too. ## Test Plan A full release was tested with about 155 artifacts (had to limit release triplets since free runners have limited resources) which resulted in 76 subjects created due to filtering. See release here: https://github.com/samypr100/python-build-standalone/releases/tag/20250205 See run here: https://github.com/samypr100/python-build-standalone/actions/runs/13220724442/job/36905418053 See attestations here: https://github.com/samypr100/python-build-standalone/attestations/4870998
1 parent d03ec63 commit 67c3fe7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,12 @@ jobs:
7878
# Uploading the relevant artifact to the GitHub release.
7979
- run: just release-run ${{ secrets.GITHUB_TOKEN }} ${{ github.event.inputs.sha }} ${{ github.event.inputs.tag }}
8080
if: ${{ github.event.inputs.dry-run == 'false' }}
81+
82+
# We filter by *.tar.@(zst|gz) since actions/attest-build-provenance only supports up to 1024 subjects
83+
- name: Generate attestations
84+
uses: actions/attest-build-provenance@v2
85+
if: ${{ github.event.inputs.dry-run == 'false' }}
86+
with:
87+
subject-path: |
88+
dist/*.tar.gz
89+
dist/*.tar.zst

0 commit comments

Comments
 (0)