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 .