Skip to content

Commit cb32f8d

Browse files
authored
Build attestations improvements (#501)
Per #343 (comment) * Adds attestations to build-0 of the linux matrix (due to recent refactor) * Adds attestations to release artifacts which include install only derived builds.
1 parent 8dc1b9c commit cb32f8d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/linux.yml

+6
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ jobs:
245245
246246
build/pythonbuild validate-distribution ${EXTRA_ARGS} dist/*.tar.zst
247247
248+
- name: Generate attestations
249+
uses: actions/attest-build-provenance@v2
250+
if: ${{ github.ref == 'refs/heads/main' }}
251+
with:
252+
subject-path: dist/*
253+
248254
- name: Upload Distribution
249255
if: ${{ ! matrix.dry-run }}
250256
uses: actions/upload-artifact@v4

.github/workflows/release.yml

+9
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ env:
2121
permissions:
2222
contents: write
2323
packages: write
24+
# Permissions used for actions/attest-build-provenance
25+
id-token: write
26+
attestations: write
2427

2528
jobs:
2629
release:
@@ -75,3 +78,9 @@ jobs:
7578
# Uploading the relevant artifact to the GitHub release.
7679
- run: just release-run ${{ secrets.GITHUB_TOKEN }} ${{ github.event.inputs.sha }} ${{ github.event.inputs.tag }}
7780
if: ${{ github.event.inputs.dry-run == 'false' }}
81+
82+
- name: Generate attestations
83+
uses: actions/attest-build-provenance@v2
84+
if: ${{ github.event.inputs.dry-run == 'false' }}
85+
with:
86+
subject-path: dist/*.tar.@(zst|gz)

0 commit comments

Comments
 (0)