Skip to content

Commit 3484bda

Browse files
committed
Attestations.
1 parent cf0d562 commit 3484bda

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

.github/workflows/repro.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ mkdir -p tools/
1818
[ -d "tools/binaryen-version"* ] || curl -#L "$BINARYEN" | tar xzC tools &
1919
wait
2020

21-
sqlite3/download.sh # Download SQLite
22-
embed/build.sh # Build Wasm
23-
git diff --exit-code # Check diffs
21+
# Download and build SQLite
22+
sqlite3/download.sh
23+
embed/build.sh
24+
25+
# Download and build sqlite-createtable-parser
26+
util/vtabutil/parse/download.sh
27+
util/vtabutil/parse/build.sh
28+
29+
# Check diffs
30+
git diff --exit-code

.github/workflows/repro.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Reproducible build
33
on:
44
workflow_dispatch:
55

6+
permissions:
7+
contents: read
8+
id-token: write
9+
attestations: write
10+
611
jobs:
712
build:
813
strategy:
@@ -17,3 +22,10 @@ jobs:
1722

1823
- name: Build
1924
run: .github/workflows/repro.sh
25+
26+
- uses: actions/attest-build-provenance@v1
27+
if: matrix.os == 'ubuntu-latest'
28+
with:
29+
subject-path: |
30+
embed/sqlite3.wasm
31+
util/vtabutil/parse/sql3parse_table.wasm

embed/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,7 @@ See the [configuration options](../sqlite3/sqlite_cfg.h),
2424
and [patches](../sqlite3) applied.
2525

2626
Built using [`wasi-sdk`](https://github.com/WebAssembly/wasi-sdk),
27-
and [`binaryen`](https://github.com/WebAssembly/binaryen).
27+
and [`binaryen`](https://github.com/WebAssembly/binaryen).
28+
29+
The build is easily reproducible, and verifiable, using
30+
[Artifact Attestations](https://github.com/ncruces/go-sqlite3/attestations).

0 commit comments

Comments
 (0)