Skip to content

Commit

Permalink
feat: Add binary attestation
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc committed Jan 7, 2025
1 parent 49b627d commit 071efb3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
VERSION: ${{ steps.extract_version.outputs.VERSION }}

build:
permissions:
id-token: write
attestations: write
name: build release
strategy:
matrix:
Expand Down Expand Up @@ -97,6 +100,11 @@ jobs:
name: anvil-zksync-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz
path: anvil-zksync-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz

- name: Binaries attestation
uses: actions/attest-build-provenance@v2
with:
subject-path: target/release/anvil-zksync

draft-release:
name: draft release
needs: [build, extract-version]
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:

jobs:
test:
# TODO removeme
permissions:
id-token: write
attestations: write

name: unit-tests
strategy:
matrix:
Expand All @@ -31,3 +36,13 @@ jobs:

- name: Run tests
run: cargo nextest run

# TODO removeme
- name: Build release
run: cargo build --release

# TODO removeme
- name: Binaries attestation
uses: actions/attest-build-provenance@v2
with:
subject-path: target/release/anvil-zksync

0 comments on commit 071efb3

Please sign in to comment.