Files
0pt/.gitea/workflows/nightly.yml
T
Claude CodeandClaude Opus 5.5 cfa1b66cc1
CI (SIAX Cloud) / sonar (pull_request) Skipped
masterplan-lock / check (pull_request) Successful in 6s
CI (SIAX Cloud) / Component conformance (blocking) (pull_request) Successful in 10s
security / scan (pull_request) Failing after 21s
CI (SIAX Cloud) / security (pull_request) Successful in 36s
CI (SIAX Cloud) / integration (pull_request) Successful in 1m0s
CI (SIAX Cloud) / quality (pull_request) Successful in 2m35s
ci: N6-komplett concurrency (röd tråd, jobbstorm §4–5)
Fullföljer #555 enligt server-config ci/jobbstorm-2026-11-10 §4–5:
- cd.yml, release.yml: fast grupp ${{ gitea.workflow }}, cancel-in-progress: false.
- ci.yml, security.yml: kanonisk grupp ${{ gitea.workflow }}-${{ gitea.ref }}, true.
- nightly.yml, prod-smoke.yml (bara schedule/workflow_dispatch): fast grupp och
  cancel-in-progress: false (tidigare true – en schemalagd körning ska köas, inte
  avbrytas).
- health-check.yml, vehiq-oltp-ingest.yml: concurrency saknades; fast grupp,
  cancel-in-progress: false (inga överlappande ingest-körningar var 15:e minut).

Bara concurrency ändras (workflow-diff-guard.py ok=true).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 00:27:54 +01:00

58 lines
2.0 KiB
YAML

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
# N6 (server-config ci/jobbstorm-2026-11-10 §4): schemalagd/manuell körning köas i en fast grupp, avbryts inte.
concurrency:
group: ${{ gitea.workflow }}
cancel-in-progress: false
jobs:
quality:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: "pnpm"
cache-dependency-path: pnpm-lock.yaml
- 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
timeout-minutes: 20
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 --skip-dirs 'siax/sbom' .