name: Nightly (SIAX Cloud) # Nightly full-gate re-run so CI exercises the repo even without pushes: # quality gate + advisory security scan. Fails loudly on regressions # introduced outside push-triggered runs (e.g. dependency drift). on: workflow_dispatch: schedule: - cron: "0 4 * * *" # daily 04:00 UTC jobs: quality: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: "22" - name: Enable corepack + pin pnpm@9 run: | corepack enable corepack prepare pnpm@9 --activate - name: Install (frozen lockfile) run: pnpm install --frozen-lockfile - name: Typecheck (blocking) run: pnpm run typecheck - name: Test (blocking) run: pnpm run test - name: Lint (advisory) continue-on-error: true run: pnpm run lint - name: Build (blocking) run: pnpm run build security: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install Trivy run: | curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin # A nightly scan exists to catch CVEs published against code that did # not change. With `--exit-code 0` it could never report failure, so it # could never raise that alarm -- the one job whose entire purpose is # detection was the one guaranteed to stay green. Fixed 2026-09-08. - name: Trivy fs scan (vuln + secrets -- fails on HIGH/CRITICAL) run: | trivy fs --scanners vuln,secret --severity HIGH,CRITICAL --exit-code 1 .