diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b17da785..3d78df18 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -28,6 +28,15 @@ updates: - dependency-name: "rand_chacha" update-types: ["version-update:semver-major"] + - package-ecosystem: npm + directory: "/apps/desktop" + schedule: + interval: weekly + open-pull-requests-limit: 10 + groups: + npm-minor-patch: + update-types: ["minor", "patch"] + - package-ecosystem: github-actions directory: "/" schedule: diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index c1f42962..be50ca8c 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -32,8 +32,8 @@ jobs: name: cargo audit (RustSec advisories) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 - - uses: rustsec/audit-check@v2 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + - uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 # v2 with: token: ${{ secrets.GITHUB_TOKEN }} # Accepted transitive advisories, each with a concrete removal gate: @@ -45,4 +45,8 @@ jobs: # matches versions only, so remove this exception with that patch. # - proc-macro-error2 reaches the lockfile only through an optional # gix -> jiff -> defmt feature we never compile; remove upstream. - ignore: RUSTSEC-2024-0416,RUSTSEC-2024-0412,RUSTSEC-2024-0418,RUSTSEC-2024-0411,RUSTSEC-2024-0417,RUSTSEC-2024-0414,RUSTSEC-2024-0415,RUSTSEC-2024-0420,RUSTSEC-2024-0419,RUSTSEC-2024-0370,RUSTSEC-2025-0081,RUSTSEC-2025-0075,RUSTSEC-2025-0080,RUSTSEC-2025-0100,RUSTSEC-2025-0098,RUSTSEC-2024-0429,RUSTSEC-2026-0173 + # - RUSTSEC-2024-0413 (atk) is the same GTK3-unmaintained family as + # 0411/0412/0414-0420; it was missing from this list (invisible + # because unmaintained advisories only warn) until Scorecard's OSV + # check counted it — OSTIF audit G-035. Same GTK4 removal gate. + ignore: RUSTSEC-2024-0416,RUSTSEC-2024-0412,RUSTSEC-2024-0413,RUSTSEC-2024-0418,RUSTSEC-2024-0411,RUSTSEC-2024-0417,RUSTSEC-2024-0414,RUSTSEC-2024-0415,RUSTSEC-2024-0420,RUSTSEC-2024-0419,RUSTSEC-2024-0370,RUSTSEC-2025-0081,RUSTSEC-2025-0075,RUSTSEC-2025-0080,RUSTSEC-2025-0100,RUSTSEC-2025-0098,RUSTSEC-2024-0429,RUSTSEC-2026-0173 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7605625b..d4f4408c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - name: Install Tauri Linux prerequisites if: runner.os == 'Linux' run: | @@ -36,10 +36,13 @@ jobs: libssl-dev \ libayatana-appindicator3-dev \ librsvg2-dev - - uses: dtolnay/rust-toolchain@1.96.1 + # SHA-pinned; the toolchain version no longer rides on the action ref, so + # it must be passed explicitly (kept in sync with rust-toolchain.toml). + - uses: dtolnay/rust-toolchain@2fe4ca74464c5902a4f6e302d0a619b4ea911ccc # 1.96.1 with: + toolchain: 1.96.1 components: rustfmt, clippy - - uses: Swatinem/rust-cache@v2 + - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 - name: fmt run: cargo fmt --all -- --check - name: clippy @@ -48,3 +51,25 @@ jobs: run: cargo test --workspace --all-targets - name: doc run: cargo doc --workspace --no-deps + + desktop: + name: desktop (typecheck + test + audit) + runs-on: ubuntu-latest + defaults: + run: + working-directory: apps/desktop + steps: + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6 + with: + node-version: 24 + cache: npm + cache-dependency-path: apps/desktop/package-lock.json + - name: install (verifies lockfile integrity hashes) + run: npm ci + - name: audit + run: npm audit --audit-level=high + - name: typecheck + run: npm run typecheck + - name: test + run: npm run test diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index c7d42f4f..f055a060 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -27,9 +27,13 @@ jobs: build-mode: none - language: actions build-mode: none + # The desktop renderer (apps/desktop/src) is where untrusted repo + # content crosses the Tauri IPC boundary into a WebView; analyze it. + - language: javascript-typescript + build-mode: none steps: - - uses: actions/checkout@v7 - - uses: github/codeql-action/init@v4 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + - uses: github/codeql-action/init@7188fc363630916deb702c7fdcf4e481b751f97a # v4.37.1 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} @@ -39,6 +43,6 @@ jobs: config: | paths-ignore: - vendor/glib-0.18.5-patched/** - - uses: github/codeql-action/analyze@v4 + - uses: github/codeql-action/analyze@7188fc363630916deb702c7fdcf4e481b751f97a # v4.37.1 with: category: "/language:${{ matrix.language }}"