- notify-ci-failure.yml lists its workflows by name. `workflows: ['*']` is not a wildcard to workflow_run: it matched nothing, so `main` was red from 2026-09-23 with no one told. - cargo audit runs a prebuilt cargo-audit (taiki-e/install-action, pinned by commit) with `--deny warnings`, replacing rustsec/audit-check@v2 - Node 20, a check-run write token, and on a pull request a failure only for "critical", which is how September's advisories passed every PR. .cargo/audit.toml's contract (a new informational advisory fails CI) is now what runs. - security-scan.yml: both audits daily against `main`, so an advisory against something already merged is reported the day it is published, not at the next PR. - cargo deny (licences, sources, bans) with deny.toml: the licence allowlist makes "every bundled licence is GPL-3.0-compatible" a test. The workspace declares `publish = false`, which it never had - and without which cargo-deny judged the app crates as published ones. - CodeQL analyses rust and actions as well as javascript-typescript. The comment saying CodeQL had no Rust support stopped being true in 2025. - ci-node.yml: Pages and id-token write move from the workflow to the one job that needs them (Sonar S8233); the audit installs with --ignore-scripts (S6505); a new `tauri lockstep` job fails when a Tauri crate and its npm package drift apart on Cargo.lock and package-lock.json. - release.yml: build (read-only token, no persisted credentials) and publish (attest + draft) are separate jobs; the tag must match all five version fields; SHA256SUMS.txt is LF, which `sha256sum -c` elsewhere needs; actions/attest-build-provenance attests the .exe and .msi; softprops/action-gh-release is pinned by commit; `workflow_dispatch` with `dry_run` builds any ref without attesting or drafting. - ci-integration.yml also runs for the CLI, exec, audit, release metadata, errors, store, index, Cargo.lock and rust-toolchain.toml - every one of which its end-to-end steps run through. - dependabot.yml: cooldowns, a group per ecosystem for Tauri packages and for actions and pip, TypeScript held below 6.1 (typescript-eslint's peer range), and the rust-toolchain ecosystem. A multi-ecosystem group would put both Tauri halves in one PR, but what it does to dependencies outside its patterns is undocumented; the lockstep job covers the gap instead. - Sonar: NOSONAR with reasons on the dev scripts' argv and PATH lookups; bundle-cli.mjs no longer claims to run from beforeBuildCommand. The dev CSP moves out of index.html into a Vite plugin that reads devCsp from tauri.conf.json, so a release build carries one policy, the strict one (S7039); checked in the dev server, where React Refresh's preamble still runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
81 lines
2.4 KiB
YAML
81 lines
2.4 KiB
YAML
# Caller into the ops repo's React reusable, plus local jobs.
|
|
#
|
|
# The reusable runs Node 24, `npm ci`, then lint / typecheck / test when the matching npm script
|
|
# exists, then the build. It has no `npm audit` step, so that gate lives here — see
|
|
# docs/RELEASE-CI.md §1.
|
|
#
|
|
# It also has no working-directory input, which is why package.json sits at the repo root with
|
|
# Vite configured `root: './ui'` (ARCHITECTURE §2).
|
|
|
|
name: CI / Node
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ci-node-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
web:
|
|
name: lint · typecheck · test · build
|
|
# The reusable declares a Pages-deploy job needing `pages: write` and `id-token: write`. It is
|
|
# skipped here (`deploy-pages: false`), but permissions are validated at startup regardless of
|
|
# `if:`, so a caller that grants less than the callee declares is rejected before it runs.
|
|
# Granted on this job only, not the workflow: the other jobs here never need to write.
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
uses: poli0981/.github/.github/workflows/reusable-web-react.yml@main
|
|
with:
|
|
node-version: '24'
|
|
package-manager: npm
|
|
build-command: npm run build
|
|
dist-dir: dist
|
|
deploy-pages: false
|
|
|
|
audit:
|
|
name: npm audit
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v7
|
|
with:
|
|
node-version: '24'
|
|
cache: npm
|
|
|
|
# The audit reads the lockfile; nothing is built, so no install script has a reason to run.
|
|
- name: Install
|
|
run: npm ci --ignore-scripts
|
|
|
|
- name: Audit
|
|
run: npm audit --audit-level=high
|
|
|
|
lockstep:
|
|
name: tauri lockstep
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
# Tauri refuses to run when the `tauri` crate and `@tauri-apps/api` are on different minors,
|
|
# and Dependabot bumps the two ecosystems in separate PRs — so either one, merged alone,
|
|
# leaves a `main` that builds and does not start. The script reads both lockfiles.
|
|
- name: Crate and npm package on one minor
|
|
run: node scripts/check-tauri-lockstep.mjs
|