Skip to content

Commit 4c2b177

Browse files
authored
ci: attest build for releases (#2341)
This will allow downstream consumers to verify the provenance of release artifacts downstream. ```bash artifact_path=wasm-tools-1.239.0-aarch64-linux.tar.gz gh attestation verify "$artifact_path" --repo bytecodealliance/wasm-tools ```
1 parent 7eae949 commit 4c2b177

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/actions/publish-release/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ runs:
6565
generate_release_notes: true
6666
tag_name: v${{ steps.tag.outputs.version }}
6767

68+
# Generate attestations for release artifacts
69+
- name: Generate artifact attestation
70+
uses: actions/attest-build-provenance@v3
71+
if: steps.tag.outputs.push_tag == 'yes'
72+
with:
73+
subject-path: 'dist/*'
74+
6875
# Conditionally run crate publishes if the token is present.
6976
- run: rustup update stable && rustup default stable
7077
shell: bash

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
permissions:
1212
contents: write
1313
id-token: write
14+
attestations: write
1415

1516
jobs:
1617
create_tag:

0 commit comments

Comments
 (0)