diff --git a/.gitea/workflows/security.yml b/.gitea/workflows/security.yml index c9a354e..f43843b 100644 --- a/.gitea/workflows/security.yml +++ b/.gitea/workflows/security.yml @@ -52,3 +52,15 @@ jobs: # (Vite/PostCSS/etc.) shouldn't block a merge. working-directory: frontend run: npm audit --omit=dev --audit-level=high + + # RECOMMENDATIONS #9: SAST. Semgrep community rules for C#/JS + OWASP/secrets patterns — + # catches injection/crypto-misuse classes the other gates (gitleaks, dep-audit, tests) + # don't look for. Advisory at first (not a required check); promote once tuned. + sast: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Semgrep scan + run: | + pip install --quiet semgrep + semgrep scan --config p/csharp --config p/javascript --config p/security-audit --exclude 'frontend/dist' --exclude '**/bin' --exclude '**/obj' --error --quiet