chore: depend on sentrix-proto crate, drop vendored proto #30
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: cargo build (native + wasm32) + clippy + fmt | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable | |
| with: | |
| components: clippy, rustfmt | |
| targets: wasm32-unknown-unknown | |
| - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 | |
| - name: Install protoc | |
| run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | |
| - name: rustfmt | |
| run: cargo fmt --all -- --check | |
| - name: build (native) | |
| run: cargo build --all-targets --locked | |
| - name: build (wasm32) | |
| run: cargo build --target wasm32-unknown-unknown --locked | |
| - name: clippy | |
| run: cargo clippy --all-targets -- -D warnings | |
| - name: test | |
| run: cargo test --locked | |
| gitleaks: | |
| name: gitleaks (secret scan) | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install gitleaks | |
| run: | | |
| GITLEAKS_VERSION=8.30.1 | |
| wget -q "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" | |
| tar xzf "gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" | |
| sudo mv gitleaks /usr/local/bin/ | |
| gitleaks version | |
| - name: Run gitleaks | |
| run: | | |
| gitleaks detect --source . --redact --verbose \ | |
| || echo "::warning::gitleaks findings (non-blocking)" |