security: Cap bincode deserialize input at 1 MiB #159
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rust CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| cargo-tests: | |
| runs-on: ubuntu-latest | |
| name: test | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v6 | |
| - uses: ./.github/actions/setup | |
| with: | |
| components: rustfmt | |
| - uses: taiki-e/install-action@nextest | |
| - name: cargo test | |
| run: cargo nextest run --workspace --all-features | |
| cargo-lint: | |
| runs-on: ubuntu-latest | |
| name: lint | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v6 | |
| - uses: ./.github/actions/setup | |
| with: | |
| channel: stable | |
| components: rustfmt,clippy | |
| - name: lint | |
| run: make lint | |
| - name: fmt | |
| run: make fmt | |
| cargo-build: | |
| runs-on: ubuntu-latest | |
| name: build | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v6 | |
| - uses: ./.github/actions/setup | |
| with: | |
| channel: stable | |
| - name: build | |
| run: cargo build --all-targets --all-features | |
| cargo-audit: | |
| runs-on: ubuntu-latest | |
| name: audit | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v6 | |
| - uses: ./.github/actions/setup | |
| with: | |
| channel: stable | |
| - uses: taiki-e/install-action@cargo-audit | |
| - name: audit | |
| run: cargo audit | |
| blind-threshold-bls-wasm-tests: | |
| runs-on: ubuntu-latest | |
| name: blind-threshold-bls-wasm-tests | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v6 | |
| - uses: ./.github/actions/setup | |
| with: | |
| channel: stable | |
| - run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
| - name: build | |
| run: cd crates/threshold-bls-ffi && wasm-pack build --target nodejs -- --features=wasm | |
| - name: Upload wasm pkg artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: wasm-pkg | |
| path: crates/threshold-bls-ffi/pkg | |
| - uses: actions/setup-node@v6 | |
| - name: Run blind-threshold-bls-wasm tests | |
| run: | | |
| git clone https://github.com/celo-org/blind-threshold-bls-wasm.git $RUNNER_TEMP/blind-threshold-bls-wasm | |
| rm $RUNNER_TEMP/blind-threshold-bls-wasm/src/blind* | |
| cp -r crates/threshold-bls-ffi/pkg/blind* $RUNNER_TEMP/blind-threshold-bls-wasm/src/ | |
| cd $RUNNER_TEMP/blind-threshold-bls-wasm | |
| npm ci | |
| npm test |