Skip to content

Commit

Permalink
Attestations.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncruces committed Jun 21, 2024
1 parent cf0d562 commit 3484bda
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/repro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ mkdir -p tools/
[ -d "tools/binaryen-version"* ] || curl -#L "$BINARYEN" | tar xzC tools &
wait

sqlite3/download.sh # Download SQLite
embed/build.sh # Build Wasm
git diff --exit-code # Check diffs
# Download and build SQLite
sqlite3/download.sh
embed/build.sh

# Download and build sqlite-createtable-parser
util/vtabutil/parse/download.sh
util/vtabutil/parse/build.sh

# Check diffs
git diff --exit-code
12 changes: 12 additions & 0 deletions .github/workflows/repro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Reproducible build
on:
workflow_dispatch:

permissions:
contents: read
id-token: write
attestations: write

jobs:
build:
strategy:
Expand All @@ -17,3 +22,10 @@ jobs:

- name: Build
run: .github/workflows/repro.sh

- uses: actions/attest-build-provenance@v1
if: matrix.os == 'ubuntu-latest'
with:
subject-path: |
embed/sqlite3.wasm
util/vtabutil/parse/sql3parse_table.wasm
5 changes: 4 additions & 1 deletion embed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ See the [configuration options](../sqlite3/sqlite_cfg.h),
and [patches](../sqlite3) applied.

Built using [`wasi-sdk`](https://github.com/WebAssembly/wasi-sdk),
and [`binaryen`](https://github.com/WebAssembly/binaryen).
and [`binaryen`](https://github.com/WebAssembly/binaryen).

The build is easily reproducible, and verifiable, using
[Artifact Attestations](https://github.com/ncruces/go-sqlite3/attestations).

0 comments on commit 3484bda

Please sign in to comment.