From 6612ab1233ec51a5d0406fbffeed7a2f25adf952 Mon Sep 17 00:00:00 2001 From: Simon Axelsson Date: Mon, 10 Aug 2026 04:11:52 +0200 Subject: [PATCH] ci: keep advisory security job in ci.yml so protected-branch status contexts stay reported --- .gitea/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 7a3af9f..9029ea0 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -40,3 +40,18 @@ jobs: run: pnpm run lint - name: Build (next build -- blocking quality gate) run: pnpm run build + + # Kept in ci.yml (advisory) so the protected-branch status check contexts + # "CI (SIAX Cloud) / quality (push)" + "CI (SIAX Cloud) / security (push)" + # are always reported on push. security.yml is the dedicated scanner on + # push/PR/weekly; this job guarantees the required check exists. + 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 + - name: Trivy scan (vuln + secrets, advisory) + run: | + trivy fs --scanners vuln,secret --severity HIGH,CRITICAL --exit-code 0 .