Skip to content

Verify integrity of downloaded toolchain before unzip/exec #10

Verify integrity of downloaded toolchain before unzip/exec

Verify integrity of downloaded toolchain before unzip/exec #10

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
# Frozen lockfile keeps the 7-day cooldown guarantee intact.
- run: pnpm install --frozen-lockfile
- run: pnpm audit --audit-level moderate
- run: pnpm build
backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install system deps (Tauri on Linux)
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install supply-chain tooling
run: cargo install cargo-audit cargo-deny cargo-cooldown --locked
- name: Build with cooldown (7-day min publish age)
working-directory: src-tauri
run: cargo cooldown check --locked
- name: Security audit (RustSec)
working-directory: src-tauri
run: cargo audit
- name: Policy check (advisories, licenses, sources)
working-directory: src-tauri
run: cargo deny check
- name: Unit tests
working-directory: src-tauri
run: cargo test --locked