From 34d9577322ca057aba3bc63aedc1db3a451e2b0e Mon Sep 17 00:00:00 2001 From: Noel Sabia Date: Sun, 18 Oct 2026 16:02:18 +0200 Subject: [PATCH] ci: replace Snyk docker scan with Snyk Code SAST scan Dockerfile linting is already covered by the droast job; the second Snyk step now scans our own source for code vulnerabilities (XSS, injection, unsafe patterns) instead of the base image. --- .gitea/workflows/pr-checker.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/pr-checker.yml b/.gitea/workflows/pr-checker.yml index 0860b94..feb3c1a 100644 --- a/.gitea/workflows/pr-checker.yml +++ b/.gitea/workflows/pr-checker.yml @@ -154,12 +154,15 @@ jobs: --severity-threshold=high \ --strict-out-of-sync=true - - name: Snyk Dockerfile / base image check + - name: Snyk Code scan (SAST) env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} - if: ${{ hashFiles(format('{0}/Dockerfile', env.APP_DIR)) != '' }} working-directory: ${{ env.APP_DIR }} - run: snyk test --docker --file=Dockerfile --severity-threshold=high + run: | + # static analysis of our own source code (XSS, injection, ...) + # Dockerfile/base image checks are covered by the droast job + snyk code test \ + --severity-threshold=high # -------------------------------------------------------- ai code review -- review: