Author SHA1 Message Date
admin 801d2e695c Merge pull request 'chore(npm): kanonisk @siax-registry (admin), ta bort tokenrad' (#42) from chore/npm-registry-admin-20261202 into main
security / scan (push) Canceled after 0s
CI (SIAX Cloud) / quality (push) Successful in 48s
CI (SIAX Cloud) / security (push) Successful in 1m32s
CI (SIAX Cloud) / contracts (push) Successful in 47s
CI (SIAX Cloud) / sonar (push) Failing after 10s
Component conformance / Component conformance (blocking) (push) Successful in 23s
2026-12-03 02:00:25 +00:00
siax-botandClaude Sonnet 5.5 bdd1157cd9 chore(npm): kanonisk @siax-registry (admin, git.siax.app), ta bort tokenrad
CI (SIAX Cloud) / sonar (pull_request) Skipped
CI (SIAX Cloud) / quality (pull_request) Successful in 44s
CI (SIAX Cloud) / security (pull_request) Successful in 51s
CI (SIAX Cloud) / contracts (pull_request) Successful in 17s
Component conformance / Component conformance (blocking) (pull_request) Successful in 14s
security / scan (pull_request) Successful in 1m51s
@siax:registry pekar pa owner admin (Gitea npm-registret, anonym lasning).
_authToken-rader tas bort: en osatt variabel ger E401 aven for publik lasning.
Paketen i admin och sax3l ar byte-identiska for nya versioner; lockfilens
integrity kontrollerades mot admin utan avvikelse.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-12-02 15:19:04 +01:00
admin b95303143b Merge pull request 'fix(security): SHA-pinna actions, min-release-age och Renovate minimumReleaseAge (Semgrep p/ci)' (#37) from fix/semgrep-supply-chain-20261123 into main
Component conformance / Component conformance (blocking) (push) Successful in 13s
CI (SIAX Cloud) / security (push) Successful in 25s
CI (SIAX Cloud) / contracts (push) Successful in 25s
CI (SIAX Cloud) / sonar (push) Successful in 40s
security / scan (push) Successful in 52s
CI (SIAX Cloud) / quality (push) Successful in 1m23s
2026-11-23 19:47:17 +00:00
siax-bot 5369a26836 chore: merge main into fix/semgrep-supply-chain-20261123 for PR#37
CI (SIAX Cloud) / sonar (pull_request) Skipped
CI (SIAX Cloud) / security (pull_request) Successful in 30s
Component conformance / Component conformance (blocking) (pull_request) Successful in 20s
CI (SIAX Cloud) / contracts (pull_request) Successful in 35s
security / scan (pull_request) Successful in 56s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m27s
2026-11-23 20:43:35 +01:00
admin 68a76b78ea Merge pull request 'fix(deps): åtgärda kända sårbarheter (OSV) så att security/scan blir grön' (#41) from fix/osv-remediation-20261123 into main
Component conformance / Component conformance (blocking) (push) Successful in 11s
CI (SIAX Cloud) / security (push) Successful in 19s
CI (SIAX Cloud) / contracts (push) Successful in 31s
CI (SIAX Cloud) / sonar (push) Successful in 36s
security / scan (push) Failing after 42s
CI (SIAX Cloud) / quality (push) Successful in 1m17s
2026-11-23 18:20:14 +00:00
Claude Code 4345d6a8cb fix(deps): zod 3 -> 4.6.6 (GHSA-mrhx-c7xc-m3w5) med regressionstest
CI (SIAX Cloud) / sonar (pull_request) Skipped
CI (SIAX Cloud) / security (pull_request) Successful in 29s
CI (SIAX Cloud) / contracts (pull_request) Successful in 25s
Component conformance / Component conformance (blocking) (pull_request) Successful in 13s
security / scan (pull_request) Failing after 44s
CI (SIAX Cloud) / quality (pull_request) Successful in 3m59s
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-23 19:13:50 +01:00
admin cf0fffc2d2 Merge pull request 'chore(recovery): backup- och restore-poster för databasjobb' (#40) from chore/restore-evidence-20261123 into main
CI (SIAX Cloud) / security (push) Successful in 28s
CI (SIAX Cloud) / contracts (push) Successful in 29s
Component conformance / Component conformance (blocking) (push) Successful in 14s
CI (SIAX Cloud) / sonar (push) Successful in 39s
security / scan (push) Failing after 46s
CI (SIAX Cloud) / quality (push) Successful in 1m32s
2026-11-23 16:30:27 +00:00
siax-botandClaude Sonnet 5.5 67f3aaa02d chore(recovery): backup- och restore-poster för databasjobb
CI (SIAX Cloud) / sonar (pull_request) Skipped
CI (SIAX Cloud) / security (pull_request) Successful in 32s
Component conformance / Component conformance (blocking) (pull_request) Successful in 31s
CI (SIAX Cloud) / contracts (pull_request) Successful in 46s
security / scan (pull_request) Failing after 1m16s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m53s
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-23 17:20:37 +01:00
admin 476557dcc3 Merge pull request 'fix(deps): åtgärda kända sårbarheter (OSV) så att security/scan blir grön' (#39) from fix/osv-remediation-20261123 into main
Component conformance / Component conformance (blocking) (push) Successful in 9s
CI (SIAX Cloud) / security (push) Successful in 19s
CI (SIAX Cloud) / contracts (push) Successful in 28s
CI (SIAX Cloud) / sonar (push) Successful in 29s
security / scan (push) Failing after 37s
CI (SIAX Cloud) / quality (push) Successful in 1m14s
2026-11-23 07:10:13 +00:00
adminandClaude Sonnet 5.5 a2664c6369 fix(deps): åtgärda kända sårbarheter (OSV) så att security/scan blir grön
CI (SIAX Cloud) / security (pull_request) Successful in 39s
CI (SIAX Cloud) / sonar (pull_request) Skipped
CI (SIAX Cloud) / contracts (pull_request) Successful in 23s
Component conformance / Component conformance (blocking) (pull_request) Successful in 9s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m11s
security / scan (pull_request) Failing after 37s
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-23 07:06:29 +00:00
admin c685e69281 Merge pull request 'fix(deps): åtgärda 3 kända sårbarheter i beroenden (OSV)' (#38) from fix/deps-osv-20261123-w3p into main
CI (SIAX Cloud) / security (push) Successful in 18s
CI (SIAX Cloud) / contracts (push) Successful in 23s
Component conformance / Component conformance (blocking) (push) Successful in 12s
CI (SIAX Cloud) / sonar (push) Successful in 38s
CI (SIAX Cloud) / quality (push) Successful in 1m23s
security / scan (push) Failing after 45s
2026-11-23 01:13:55 +00:00
Claude Code 0d15b2c1ad fix(deps): åtgärda 3 kända sårbarheter i beroenden (OSV)
CI (SIAX Cloud) / sonar (pull_request) Skipped
Component conformance / Component conformance (blocking) (pull_request) Successful in 14s
CI (SIAX Cloud) / security (pull_request) Successful in 24s
CI (SIAX Cloud) / contracts (pull_request) Successful in 55s
security / scan (pull_request) Failing after 55s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m38s
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-23 01:56:02 +01:00
Claude Code 6da6ee52d8 fix(security): SHA-pinna actions, min-release-age och Renovate minimumReleaseAge (Semgrep p/ci)
CI (SIAX Cloud) / sonar (pull_request) Skipped
Component conformance / Component conformance (blocking) (pull_request) Successful in 17s
CI (SIAX Cloud) / security (pull_request) Successful in 28s
CI (SIAX Cloud) / contracts (pull_request) Successful in 35s
security / scan (pull_request) Successful in 54s
CI (SIAX Cloud) / quality (pull_request) Successful in 4m1s
Samma estate-standard som redan gäller i t.ex. aud0/1p/FamilyOS: SHA-pinnade actions, min-release-age 7 dagar, pnpm minimumReleaseAge/trustPolicy/blockExoticSubdeps och Renovate minimumReleaseAge. Inga steg, flaggor eller trösklar i CI ändras.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-23 01:50:10 +01:00
admin dd2467f7e6 Merge pull request 'fix(deps): tinypool-override (CRITICAL prototype pollution → RCE, OSV)' (#36) from fix/deps-osv-20261122 into main
CI (SIAX Cloud) / security (push) Successful in 24s
CI (SIAX Cloud) / contracts (push) Successful in 32s
Component conformance / Component conformance (blocking) (push) Successful in 19s
CI (SIAX Cloud) / sonar (push) Successful in 41s
security / scan (push) Failing after 1m0s
CI (SIAX Cloud) / quality (push) Successful in 1m41s
2026-11-22 16:11:51 +00:00
Claude Code ac91aa844b fix(deps): tinypool-override (CRITICAL prototype pollution → RCE, OSV)
CI (SIAX Cloud) / security (pull_request) Successful in 26s
CI (SIAX Cloud) / sonar (pull_request) Skipped
CI (SIAX Cloud) / contracts (pull_request) Successful in 32s
Component conformance / Component conformance (blocking) (pull_request) Successful in 22s
security / scan (pull_request) Failing after 1m4s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m47s
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-22 16:57:43 +01:00
admin 89917a9489 Merge pull request 'fix(deps): åtgärda 10 kända sårbarheter i beroenden (OSV)' (#35) from fix/deps-osv-20261122 into main
CI (SIAX Cloud) / security (push) Successful in 28s
CI (SIAX Cloud) / contracts (push) Successful in 34s
Component conformance / Component conformance (blocking) (push) Successful in 18s
CI (SIAX Cloud) / sonar (push) Successful in 51s
security / scan (push) Failing after 59s
CI (SIAX Cloud) / quality (push) Successful in 1m45s
2026-11-22 15:30:31 +00:00
Claude Code 480adba0be fix(deps): åtgärda 10 kända sårbarheter i beroenden (OSV)
CI (SIAX Cloud) / sonar (pull_request) Skipped
Component conformance / Component conformance (blocking) (pull_request) Successful in 20s
CI (SIAX Cloud) / security (pull_request) Successful in 28s
CI (SIAX Cloud) / contracts (pull_request) Successful in 42s
security / scan (pull_request) Failing after 1m8s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m59s
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-22 16:20:05 +01:00
admin 87ba04fc9c Merge pull request 'chore(security): fail-closed scannerfel + resurstak for scannrarna' (#32) from chore/security-fail-closed-20261113 into main
CI (SIAX Cloud) / security (push) Successful in 26s
Component conformance / Component conformance (blocking) (push) Successful in 19s
CI (SIAX Cloud) / contracts (push) Successful in 37s
CI (SIAX Cloud) / sonar (push) Successful in 47s
security / scan (push) Failing after 57s
CI (SIAX Cloud) / quality (push) Successful in 1m34s
2026-11-14 16:31:01 +00:00
admin 06af751888 chore(security): fail-closed scannerfel + resurstak for scannrarna
CI (SIAX Cloud) / sonar (pull_request) Skipped
Component conformance / Component conformance (blocking) (pull_request) Successful in 11s
CI (SIAX Cloud) / contracts (pull_request) Successful in 38s
CI (SIAX Cloud) / security (pull_request) Successful in 44s
security / scan (pull_request) Failing after 55s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m35s
2026-11-14 16:17:14 +00:00
admin 5a208a29c3 Merge pull request 'chore(standard): SIAX-standardartefakter för PRODUCTION_READY' (#31) from chore/prodready-standard-2026-11-13 into main
CI (SIAX Cloud) / security (push) Successful in 31s
CI (SIAX Cloud) / contracts (push) Successful in 42s
Component conformance / Component conformance (blocking) (push) Successful in 22s
CI (SIAX Cloud) / sonar (push) Successful in 54s
security / scan (push) Failing after 1m3s
CI (SIAX Cloud) / quality (push) Successful in 1m58s
2026-11-12 22:40:13 +00:00
admin 133b0116a1 Merge branch 'main' into chore/prodready-standard-2026-11-13
CI (SIAX Cloud) / sonar (pull_request) Skipped
Component conformance / Component conformance (blocking) (pull_request) Successful in 16s
CI (SIAX Cloud) / contracts (pull_request) Successful in 1m37s
CI (SIAX Cloud) / security (pull_request) Successful in 2m2s
security / scan (pull_request) Failing after 1m11s
CI (SIAX Cloud) / quality (pull_request) Successful in 5m32s
2026-11-12 21:30:22 +00:00
admin d4ca0cf615 chore(prodready): re-trigger CI after Gitea queue cleanup
CI (SIAX Cloud) / sonar (push) Skipped
CI (SIAX Cloud) / security (push) Successful in 19s
CI (SIAX Cloud) / sonar (pull_request) Skipped
CI (SIAX Cloud) / contracts (push) Successful in 23s
Component conformance / Component conformance (blocking) (push) Successful in 9s
CI (SIAX Cloud) / security (pull_request) Successful in 19s
Component conformance / Component conformance (blocking) (pull_request) Successful in 10s
CI (SIAX Cloud) / contracts (pull_request) Successful in 26s
security / scan (pull_request) Failing after 18s
CI (SIAX Cloud) / quality (push) Successful in 1m16s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m26s
2026-11-12 22:19:32 +01:00
admin bf772a82af chore(standard): SIAX-standardartefakter för PRODUCTION_READY (pass 1+2)
CI (SIAX Cloud) / quality (push) Waiting to run
CI (SIAX Cloud) / security (push) Waiting to run
CI (SIAX Cloud) / contracts (push) Waiting to run
CI (SIAX Cloud) / quality (pull_request) Waiting to run
CI (SIAX Cloud) / sonar (push) Waiting to run
CI (SIAX Cloud) / security (pull_request) Waiting to run
CI (SIAX Cloud) / contracts (pull_request) Waiting to run
CI (SIAX Cloud) / sonar (pull_request) Waiting to run
Component conformance / Component conformance (blocking) (pull_request) Waiting to run
Component conformance / Component conformance (blocking) (push) Waiting to run
security / scan (pull_request) Waiting to run
2026-11-12 21:12:41 +01:00
admin 66e0a494af Merge pull request 'chore(standard): standardartefakter enligt SIAX repo-standard' (#29) from oc/standard-artifacts-20261112 into main
CI (SIAX Cloud) / security (push) Successful in 23s
Component conformance / Component conformance (blocking) (push) Successful in 15s
CI (SIAX Cloud) / contracts (push) Successful in 28s
CI (SIAX Cloud) / sonar (push) Successful in 43s
CI (SIAX Cloud) / quality (push) Successful in 2m9s
security / scan (push) Failing after 2m8s
2026-11-12 17:55:12 +00:00
admin bebf781f41 Merge pull request 'ci(concurrency): volymreducering i 1 workflow' (#30) from ci/concurrency-2026-11-11 into main
CI (SIAX Cloud) / quality (push) Canceled after 0s
CI (SIAX Cloud) / security (push) Canceled after 0s
CI (SIAX Cloud) / contracts (push) Canceled after 0s
CI (SIAX Cloud) / sonar (push) Canceled after 0s
Component conformance / Component conformance (blocking) (push) Canceled after 0s
security / scan (push) Canceled after 0s
ci(concurrency): volymreducering enligt §12
2026-11-12 17:47:10 +00:00
admin 6c1a6f47a8 ci(concurrency): masterplan-lock.yml — marker enligt doctor CIC-* / §12
CI (SIAX Cloud) / sonar (pull_request) Skipped
Component conformance / Component conformance (blocking) (pull_request) Successful in 9s
CI (SIAX Cloud) / contracts (pull_request) Successful in 25s
CI (SIAX Cloud) / security (pull_request) Successful in 33s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m19s
security / scan (pull_request) Failing after 1m53s
2026-11-12 17:33:55 +00:00
admin d3e7d46dea chore(standard): lägg till .siax-doctor.json
CI (SIAX Cloud) / sonar (pull_request) Skipped
CI (SIAX Cloud) / security (pull_request) Successful in 41s
CI (SIAX Cloud) / contracts (pull_request) Successful in 54s
CI (SIAX Cloud) / quality (pull_request) Successful in 2m19s
Component conformance / Component conformance (blocking) (pull_request) Successful in 29s
security / scan (pull_request) Failing after 1m40s
2026-11-12 17:27:04 +00:00
admin bcd5e4fd44 Merge pull request 'ci: concurrency-grupp enligt N6 (jobbstorm)' (#23) from ci/concurrency-2026-11-10 into main
Component conformance / Component conformance (blocking) (push) Successful in 14s
CI (SIAX Cloud) / sonar (push) Successful in 35s
CI (SIAX Cloud) / security (push) Successful in 43s
CI (SIAX Cloud) / quality (push) Successful in 1m26s
security / scan (push) Failing after 58s
CI (SIAX Cloud) / contracts (push) Successful in 3m1s
CI (SIAX Cloud) / security (pull_request) Successful in 18s
CI (SIAX Cloud) / sonar (pull_request) Skipped
Component conformance / Component conformance (blocking) (pull_request) Successful in 12s
CI (SIAX Cloud) / contracts (pull_request) Successful in 52s
security / scan (pull_request) Failing after 40s
CI (SIAX Cloud) / quality (pull_request) Successful in 3m45s
2026-11-12 12:35:37 +00:00
siax-bot 536059b1d3 chore: slå ihop main i grenen
CI (SIAX Cloud) / sonar (pull_request) Skipped
CI (SIAX Cloud) / security (pull_request) Successful in 18s
CI (SIAX Cloud) / contracts (pull_request) Successful in 22s
Component conformance / Component conformance (blocking) (pull_request) Successful in 18s
security / scan (pull_request) Failing after 42s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m25s
2026-11-12 13:35:31 +01:00
admin 4dc76d3c8f fix(security): stäng Trivy HIGH/CRITICAL-fynd (beroendebumpar)
CI (SIAX Cloud) / quality (push) Canceled after 0s
CI (SIAX Cloud) / security (push) Canceled after 0s
CI (SIAX Cloud) / contracts (push) Canceled after 0s
CI (SIAX Cloud) / sonar (push) Canceled after 0s
security / scan (push) Canceled after 0s
Component conformance / Component conformance (blocking) (push) Successful in 13s
2026-11-12 12:06:05 +00:00
Claude CodeandClaude Opus 5.5 c88faea471 ci(n6): gör alla workflows N6-kompletta
CI (SIAX Cloud) / sonar (pull_request) Skipped
security / scan (pull_request) Failing after 13s
CI (SIAX Cloud) / security (pull_request) Successful in 16s
CI (SIAX Cloud) / contracts (pull_request) Successful in 26s
Component conformance / Component conformance (blocking) (pull_request) Failing after 26s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m17s
- ci.yml: push bara på main (pull_request täcker grenarna), kanonisk
  concurrency-grupp ${{ gitea.workflow }}-${{ gitea.ref }} med cancel-in-progress.
- masterplan-lock.yml: bara schedule -> fast grupp ${{ gitea.workflow }},
  cancel-in-progress: false.

Bara concurrency och push-filter ändras (workflow-diff-guard.py).
security.yml lämnas orörd (kanonisk fil, ägs av security-grinden).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 00:01:34 +01:00
Claude CodeandClaude Opus 5.5 55fff7e8d1 ci: concurrency-grupp enligt N6 (jobbstorm-2026-11-10)
CI (SIAX Cloud) / sonar (push) Skipped
CI (SIAX Cloud) / security (push) Successful in 36s
CI (SIAX Cloud) / sonar (pull_request) Skipped
CI (SIAX Cloud) / contracts (push) Successful in 45s
CI (SIAX Cloud) / security (pull_request) Successful in 19s
security / scan (pull_request) Failing after 18s
CI (SIAX Cloud) / contracts (pull_request) Successful in 43s
Component conformance / Component conformance (blocking) (pull_request) Failing after 46s
CI (SIAX Cloud) / quality (push) Successful in 1m41s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m36s
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-10 21:18:12 +01:00
19 changed files with 441 additions and 306 deletions
+7 -7
View File
@@ -1,11 +1,11 @@
# CI-14 — CODEOWNERS bor i .gitea/, aldrig i .github/ (SEC-25).
# Granskning krävs särskilt för kontrakt, deploy och migrationer.
* @sax3l
/contracts/ @sax3l
/deploy/ @sax3l
/.gitea/ @sax3l
/siax.repo.json @sax3l
/siax.config.json @sax3l
* @admin
/contracts/ @admin
/deploy/ @admin
/.gitea/ @admin
/siax.repo.json @admin
/siax.config.json @admin
# TODO: lägg till migrationskatalogen när den finns, t.ex.
# /packages/db/migrations/ @sax3l
# /packages/db/migrations/ @admin
+20 -11
View File
@@ -1,18 +1,23 @@
name: CI (SIAX Cloud)
on: [push, pull_request, workflow_dispatch]
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
# CI-02 concurrency (N6): en ny commit på samma PR/gren avbryter den inaktuella körningen.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
group: ${{ gitea.workflow }}-${{ gitea.ref }}
cancel-in-progress: true
jobs:
quality:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: "22"
- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
with:
version: 9.15.9
- name: Install
@@ -29,20 +34,24 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- name: Install Trivy
run: curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
run: |
# Pinned + checksum-verified instead of `curl ... | sh` (Semgrep gha-curl-pipe-shell)
curl -sSfL -o /tmp/trivy.tar.gz "https://github.com/aquasecurity/trivy/releases/download/v0.76.2/trivy_0.76.2_Linux-64bit.tar.gz"
echo "bc0fc726e017b8927a62b2d3531d7a84ee01769daf5c99ed866dced54089fdbf /tmp/trivy.tar.gz" | sha256sum -c -
tar -xzf /tmp/trivy.tar.gz -C /usr/local/bin trivy
- name: Scan
run: trivy fs --scanners vuln,secret --severity HIGH,CRITICAL --exit-code 0 .
contracts:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: "22"
- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
with:
version: 9.15.9
- name: Install
@@ -60,7 +69,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
fetch-depth: 0
- name: SonarQube analysis (self-hosted sonar.siax.io)
@@ -2,12 +2,17 @@ name: Component conformance
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ gitea.workflow }}-${{ gitea.ref }}
cancel-in-progress: true
jobs:
conformance:
name: Component conformance (blocking)
+5 -1
View File
@@ -2,9 +2,13 @@ name: Masterplan Lock
on:
schedule:
- cron: "0 4 * * *"
# ci-concurrency-exempt: tar masterplan-låset; avbrott kan lämna låset satt (N6 §4)
concurrency:
group: ${{ gitea.workflow }}
cancel-in-progress: false
jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- run: echo "masterplan lock placeholder"
+85 -16
View File
@@ -26,6 +26,7 @@ on:
pull_request: {}
schedule:
- cron: "17 2 * * *"
workflow_dispatch: {}
permissions: { contents: read }
concurrency:
group: security-${{ github.ref }}
@@ -34,6 +35,8 @@ concurrency:
jobs:
scan:
runs-on: ubuntu-latest
# Övre gräns: ett scannerjobb får aldrig äta en delad runner-värd.
timeout-minutes: 60
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with: { fetch-depth: 0 }
@@ -61,38 +64,103 @@ jobs:
- name: gitleaks secret scan
run: |
set +e
docker run --rm -v "$SCAN_VOLUME:/repo" -w /repo \
zricethezav/gitleaks:v8.30.1 detect --no-git --source /repo --no-banner --exit-code 1 > /tmp/scan.log 2>&1
docker run --rm --cpus 2 --memory 4g -v "$SCAN_VOLUME:/repo" -w /repo \
zricethezav/gitleaks:v8.30.1 detect --no-git --source /repo --no-banner --redact --exit-code 1 > /tmp/scan.log 2>&1
rc=$?
set -e
tail -n 120 /tmp/scan.log
if [ $rc -eq 0 ]; then echo "gitleaks secret scan ren"; exit 0; fi
if [ $rc -eq 1 ]; then echo "::error::gitleaks secret scan hittade fynd"; exit 1; fi
echo "::warning::gitleaks secret scan kunde inte köras (rc=$rc) - verktygsfel, inte fynd"; exit 0
echo "::error::gitleaks secret scan kunde inte koras (rc=$rc) - scannerfel, inte fynd; grinden far inte bli tyst gron"; exit 1
# Historiken scannas informativt. Gamla hemligheter i tidigare commits
# kraver historikomskrivning och blockerar darfor inte bygget.
- name: gitleaks history informational
continue-on-error: true
# gitleaks over just de commits som PR:en eller pushen inför. Blockerar på
# hemligheter som introduceras i intervallet, även om de raderas senare i
# samma PR (de finns kvar i historiken efter merge). Git-läget med
# --log-opts skannar bara tillagda rader, så en PR som RADERAR en gammal
# hemlighet fälls inte, och .gitleaks.toml/.gitleaksignore i repot gäller.
# Fullhistoriken körs bara nattligt/manuellt (nästa steg): en full
# `git log -p --all` per PR tog timmar och sänkte runner-värden
# (server10, 2026-11-11).
- name: gitleaks commit range
if: github.event_name == 'pull_request' || github.event_name == 'push'
timeout-minutes: 15
env:
EVENT_NAME: ${{ github.event_name }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
BEFORE_SHA: ${{ github.event.before }}
run: |
docker run --rm -v "$SCAN_VOLUME:/repo" -w /repo \
set -eu
test -d .git || { echo "::error::ingen .git i $PWD"; exit 1; }
head="${PR_HEAD_SHA:-$GITHUB_SHA}"
base=""
if [ "$EVENT_NAME" = "pull_request" ] && [ -n "${BASE_SHA:-}" ]; then
base=$(git merge-base "$BASE_SHA" "$head" 2>/dev/null || echo "$BASE_SHA")
elif [ -n "${BEFORE_SHA:-}" ] && [ "$BEFORE_SHA" != "0000000000000000000000000000000000000000" ] \
&& git cat-file -e "${BEFORE_SHA}^{commit}" 2>/dev/null; then
base="$BEFORE_SHA"
fi
MAX=500
if [ -n "$base" ]; then
count=$(git rev-list --count "$base..$head")
echo "intervall $base..$head: $count commits"
if [ "$count" -eq 0 ]; then echo "inga nya commits i intervallet"; exit 0; fi
if [ "$count" -gt "$MAX" ]; then
echo "::warning::intervallet har $count commits; skannar de $MAX senaste. Resten täcks av den nattliga fullhistorikskanningen."
fi
logopts="-n $MAX $base..$head"
else
echo "::notice::inget jämförbart föregående läge (ny gren eller omskriven historik); skannar head-commiten. Fullhistoriken täcks nattligt."
logopts="-n 1 $head"
fi
name="siax-gitleaks-range-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
set +e
timeout --signal=TERM 12m docker run --rm --name "$name" --cpus 2 --memory 4g \
-v "$SCAN_VOLUME:/repo" -w /repo \
-e GIT_CONFIG_COUNT=1 -e GIT_CONFIG_KEY_0=safe.directory -e GIT_CONFIG_VALUE_0='*' \
zricethezav/gitleaks:v8.30.1 detect --source /repo --log-opts="$logopts" \
--no-banner --redact --exit-code 1 > /tmp/scan.log 2>&1
rc=$?
set -e
docker kill "$name" >/dev/null 2>&1 || true
tail -n 120 /tmp/scan.log
if [ $rc -eq 0 ]; then echo "gitleaks commit range ren"; exit 0; fi
if [ $rc -eq 1 ]; then echo "::error::gitleaks commit range hittade fynd i införda commits"; exit 1; fi
if [ $rc -eq 124 ]; then echo "::error::gitleaks commit range nådde tidsgränsen - intervallet är EJ skannat"; exit 1; fi
echo "::error::gitleaks commit range kunde inte koras (rc=$rc) - scannerfel, inte fynd; grinden far inte bli tyst gron"; exit 1
# Hela historiken scannas informativt, bara nattligt eller manuellt och
# med tidsbudget. Gamla hemligheter i tidigare commits kräver
# historikomskrivning och blockerar därför inte bygget.
- name: gitleaks history informational
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
timeout-minutes: 45
continue-on-error: true # ci2-allow-swallowed-failure: historik-gitleaks informativt per kanonisk security.yml
run: |
name="siax-gitleaks-history-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
rc=0
timeout --signal=TERM 40m docker run --rm --name "$name" --cpus 2 --memory 6g \
-v "$SCAN_VOLUME:/repo" -w /repo \
-e GIT_CONFIG_COUNT=1 -e GIT_CONFIG_KEY_0=safe.directory \
-e GIT_CONFIG_VALUE_0='*' \
zricethezav/gitleaks:v8.30.1 detect --source /repo --no-banner --exit-code 1 \
|| echo "::notice::historiska traffar loggas informativt"
zricethezav/gitleaks:v8.30.1 detect --source /repo --no-banner --redact --exit-code 1 || rc=$?
docker kill "$name" >/dev/null 2>&1 || true
if [ "$rc" -eq 124 ]; then echo "::warning::fullhistorikskanningen nådde tidsbudgeten (40 min) - historiken är EJ fullständigt skannad"; fi
if [ "$rc" -ne 0 ]; then echo "::notice::historiska träffar eller avbrott loggas informativt (rc=$rc)"; fi
# Trivy filsystem, blockerar pa HIGH och CRITICAL sarbarheter och hemligheter (SUP-*)
- name: Trivy filesystem scan
run: |
set +e
docker run --rm -v "$SCAN_VOLUME:/repo" -w /repo \
docker run --rm --cpus 2 --memory 4g -v "$SCAN_VOLUME:/repo" -w /repo \
aquasec/trivy:0.76.2 fs --scanners vuln,secret --severity HIGH,CRITICAL --exit-code 1 --no-progress /repo > /tmp/scan.log 2>&1
rc=$?
set -e
tail -n 120 /tmp/scan.log
if [ $rc -eq 0 ]; then echo "Trivy filesystem scan ren"; exit 0; fi
if [ $rc -eq 1 ]; then echo "::error::Trivy filesystem scan hittade fynd"; exit 1; fi
echo "::warning::Trivy filesystem scan kunde inte köras (rc=$rc) - verktygsfel, inte fynd"; exit 0
echo "::error::Trivy filesystem scan kunde inte koras (rc=$rc) - scannerfel, inte fynd; grinden far inte bli tyst gron"; exit 1
# Dockerfile- och IaC-misconfig är informativt: DS-0002 (root-USER)
# kräver ändrade runtime-användare och hanteras per repo, inte i grinden.
@@ -117,28 +185,29 @@ jobs:
cfg=""
if [ -f "/repo/osv-scanner.toml" ]; then cfg="--config=/repo/osv-scanner.toml"; fi
set +e
docker run --rm -v "$SCAN_VOLUME:/repo" -w /repo \
docker run --rm --cpus 2 --memory 4g -v "$SCAN_VOLUME:/repo" -w /repo \
ghcr.io/google/osv-scanner:v2.7.1 scan source --recursive $cfg /repo > /tmp/scan.log 2>&1
rc=$?
set -e
tail -n 120 /tmp/scan.log
if [ $rc -eq 0 ]; then echo "OSV ren"; exit 0; fi
if [ $rc -eq 1 ]; then echo "::error::OSV Scanner hittade fynd"; exit 1; fi
echo "::warning::OSV Scanner kunde inte koras (rc=$rc) - verktygsfel, inte fynd"; exit 0
echo "::error::OSV Scanner kunde inte koras (rc=$rc) - scannerfel, inte fynd; grinden far inte bli tyst gron"; exit 1
# Statisk kodanalys, felallvarlighet bryter bygget. Semgrep kraver koden pa /src
- name: Semgrep code scan
run: |
set +e
docker run --rm -v "$SCAN_VOLUME:/src" -w /src \
docker run --rm --cpus 2 --memory 4g -v "$SCAN_VOLUME:/src" -w /src \
semgrep/semgrep:1.183.0 semgrep scan --config=p/ci --error --quiet > /tmp/scan.log 2>&1
rc=$?
set -e
tail -n 120 /tmp/scan.log
if [ $rc -eq 0 ]; then echo "Semgrep code scan ren"; exit 0; fi
if [ $rc -eq 1 ]; then echo "::error::Semgrep code scan hittade fynd"; exit 1; fi
echo "::warning::Semgrep code scan kunde inte köras (rc=$rc) - verktygsfel, inte fynd"; exit 0
echo "::error::Semgrep code scan kunde inte koras (rc=$rc) - scannerfel, inte fynd; grinden far inte bli tyst gron"; exit 1
- name: Remove scan volume
if: always()
run: |
for c in $(docker ps -q --filter "name=siax-gitleaks-.*-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"); do docker kill "$c" >/dev/null 2>&1 || true; done
docker volume rm -f "${SCAN_VOLUME:-none}" >/dev/null 2>&1 || true
+7 -2
View File
@@ -1,4 +1,9 @@
@siax:registry=https://git.siax.io/api/packages/siax/npm/
//git.siax.io/api/packages/siax/npm/:_authToken=${NODE_AUTH_TOKEN}
# @siax/* resolves from SIAX's local Gitea npm registry, canonical owner "admin" (host git.siax.app, anonymous read).
# No _authToken line on purpose: an unset or stale ${NODE_AUTH_TOKEN} makes npm send an empty Bearer and Gitea answers 401 even for public reads.
# Publishing sets its own auth in the CI user config, never here. Do not use npm.siax.io (402) or /api/packages/siax/ (owner does not exist, 404).
# External builds (Vercel etc.) use https://registry.siax.dev via design.siax.dev/docs/consume.md.
@siax:registry=https://git.siax.app/api/packages/admin/npm/
engine-strict=true
fund=false
# Supply-chain: wait 7 days before resolving newly published versions (Semgrep p/ci; npm 11.10+).
min-release-age=7
+3
View File
@@ -0,0 +1,3 @@
{
"exemptions": []
}
+3 -3
View File
@@ -14,16 +14,16 @@
"@siax/c0py-config": "workspace:*",
"@siax/c0py-core": "workspace:*",
"@siax/c0py-types": "workspace:*",
"fastify": "^5.12.0",
"fastify": "^5.12.6",
"pg": "^8.23.0",
"playwright-core": "^1.63.0",
"zod": "^3.24.0"
"zod": "^4.6.6"
},
"devDependencies": {
"@types/node": "^24.0.0",
"@types/pg": "^8.23.1",
"tsx": "^4.21.0",
"typescript": "^5.7.2",
"vitest": "^3.0.0"
"vitest": "^4.1.12"
}
}
+2 -2
View File
@@ -11,7 +11,7 @@
"test": "vitest run"
},
"dependencies": {
"next": "^15.0.0",
"next": "15.5.28",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
@@ -20,6 +20,6 @@
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"typescript": "^5.7.2",
"vitest": "^3.0.0"
"vitest": "^4.1.12"
}
}
+4 -1
View File
@@ -32,7 +32,10 @@
"postcss@<8.5.18": "8.5.28",
"next": "15.5.28",
"sharp": "0.35.5",
"source-map-js": "1.2.2"
"source-map-js": "1.2.2",
"next@<15.5.29": "15.5.29",
"tinypool": "2.1.2",
"@typescript-eslint/typescript-estree>minimatch": "11.0.8"
}
},
"packageManager": "[email protected]"
+1 -1
View File
@@ -14,6 +14,6 @@
},
"devDependencies": {
"typescript": "^5.7.2",
"vitest": "^3.0.0"
"vitest": "^4.1.12"
}
}
+2 -2
View File
@@ -10,10 +10,10 @@
"test": "vitest run"
},
"dependencies": {
"zod": "^3.24.0"
"zod": "^4.6.6"
},
"devDependencies": {
"typescript": "^5.7.2",
"vitest": "^3.0.0"
"vitest": "^4.1.12"
}
}
+41
View File
@@ -0,0 +1,41 @@
import { describe, it, expect } from "vitest";
import { envSchema } from "../src/index.js";
const required = {
ZITADEL_ISSUER: "https://id-customers.siax.io",
ZITADEL_AUDIENCE: "c0py-api.siax.io",
DATABASE_URL: "postgresql://localhost:5432/c0py",
};
// Regressionstest för zod 3 -> 4 (OSV GHSA-mrhx-c7xc-m3w5): beteendet hos envSchema ska vara oförändrat.
describe("envSchema (zod 4)", () => {
it("fyller i standardvärden och coerce:ar numeriska strängar", () => {
const env = envSchema.parse({ ...required });
expect(env.PORT).toBe(3000);
expect(env.NODE_ENV).toBe("development");
expect(env.CRAWL_TIMEOUT_MS).toBe(30000);
expect(env.MAX_REGISTRY_PAGES).toBe(1000);
expect(env.CAPTURE_WORKER).toBe("on");
expect(env.CL0UD_REQUIRED).toBe("false");
expect(env.CL0UD_PROBE_INTERVAL_MS).toBe(300000);
expect(envSchema.parse({ ...required, PORT: "8080" }).PORT).toBe(8080);
});
it("kräver issuer, audience och databas-URL", () => {
const result = envSchema.safeParse({});
expect(result.success).toBe(false);
if (!result.success) {
const paths = result.error.issues.map((i) => i.path.join("."));
expect(paths).toEqual(
expect.arrayContaining(["ZITADEL_ISSUER", "ZITADEL_AUDIENCE", "DATABASE_URL"]),
);
}
});
it("avvisar ogiltig URL och okänt enum-värde", () => {
expect(envSchema.safeParse({ ...required, ZITADEL_ISSUER: "inte-en-url" }).success).toBe(false);
expect(envSchema.safeParse({ ...required, CL0UD_BASE_URL: "nope" }).success).toBe(false);
expect(envSchema.safeParse({ ...required, NODE_ENV: "staging" }).success).toBe(false);
expect(envSchema.safeParse({ ...required, CAPTURE_WORKER: "maybe" }).success).toBe(false);
});
});
+1 -1
View File
@@ -11,6 +11,6 @@
},
"devDependencies": {
"typescript": "^5.7.2",
"vitest": "^3.0.0"
"vitest": "^4.1.12"
}
}
+197 -258
View File
File diff suppressed because it is too large Load Diff
+5
View File
@@ -1,3 +1,8 @@
packages:
- 'apps/*'
- 'packages/*'
# Supply-chain hardening (Semgrep p/ci blocking rules): 7 days wait, no downgrade of trust, no exotic sub-dependencies
minimumReleaseAge: 10080
trustPolicy: no-downgrade
blockExoticSubdeps: true
+35 -1
View File
@@ -1 +1,35 @@
{"$schema": "https://github.com/renovatebot/renovate-config/blob/master/renovate-schema.json", "extends": ["config:recommended"], "packageRules": [{"matchPackagePatterns": ["^@siax/"], "rangeStrategy": "bump"}, {"matchPackagePatterns": ["typescript"], "rangeStrategy": "bump"}, {"matchPackagePatterns": ["node"], "rangeStrategy": "update"}], "vulnerabilityReport": {"enabled": true}, "schedule": ["before 3am on Saturday"]}
{
"$schema": "https://github.com/renovatebot/renovate-config/blob/master/renovate-schema.json",
"extends": [
"config:recommended"
],
"packageRules": [
{
"matchPackagePatterns": [
"^@siax/"
],
"rangeStrategy": "bump",
"minimumReleaseAge": "7 days"
},
{
"matchPackagePatterns": [
"typescript"
],
"rangeStrategy": "bump",
"minimumReleaseAge": "7 days"
},
{
"matchPackagePatterns": [
"node"
],
"rangeStrategy": "update",
"minimumReleaseAge": "7 days"
}
],
"vulnerabilityReport": {
"enabled": true
},
"schedule": [
"before 3am on Saturday"
]
}
@@ -0,0 +1,9 @@
{
"id": "server6-db.qhucpjjpv3mx9jupqkbyf5uh",
"repo": "c0py",
"frequency": "daily",
"retention": "3m",
"target": "storage-box",
"encrypted": true,
"lastRunAt": "2026-11-23T00:42:41Z"
}
@@ -0,0 +1,9 @@
{
"id": "server6-db.qhucpjjpv3mx9jupqkbyf5uh-20261118",
"repo": "c0py",
"backupId": "server6-db.qhucpjjpv3mx9jupqkbyf5uh",
"performedAt": "2026-11-18T11:02:47Z",
"performedBy": "siax-backup-restoretest.service",
"result": "pass",
"notes": "Nod server6, jobb db.qhucpjjpv3mx9jupqkbyf5uh: veckovist återställningstest (temporär container utan nätverk, radräkning). Tidsstämpel ur nodens tillstånd (restore_last_success)."
}