CI (SIAX Cloud) / sonar (pull_request) Skipped
masterplan-lock / check (pull_request) Successful in 5s
CI (SIAX Cloud) / Component conformance (blocking) (pull_request) Successful in 8s
CI (SIAX Cloud) / security (pull_request) Successful in 15s
security / scan (pull_request) Successful in 39s
CI (SIAX Cloud) / integration (pull_request) Successful in 1m8s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m44s
65 lines
2.6 KiB
YAML
65 lines
2.6 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: true
|
|
jobs:
|
|
quality:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 45
|
|
steps:
|
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # 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@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
- name: Install Trivy (pinned + checksum verified)
|
|
run: |
|
|
set -euo pipefail
|
|
TRIVY_VERSION=0.76.2
|
|
BASE="https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}"
|
|
curl -fsSLO "${BASE}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz"
|
|
curl -fsSLO "${BASE}/trivy_${TRIVY_VERSION}_checksums.txt"
|
|
grep " trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz$" "trivy_${TRIVY_VERSION}_checksums.txt" | sha256sum -c -
|
|
tar -xzf "trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz" -C /usr/local/bin trivy
|
|
rm -f "trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz" "trivy_${TRIVY_VERSION}_checksums.txt"
|
|
trivy --version
|
|
# 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' .
|