From a2daadfffc434348659353731666fb69ed903430 Mon Sep 17 00:00:00 2001 From: Ulzii Otgonbaatar Date: Fri, 10 Apr 2026 11:32:37 -0600 Subject: [PATCH] ci: add Semgrep SAST scanning on pull requests Made-with: Cursor --- .github/workflows/semgrep.yml | 17 +++++++++++++++++ .semgrepignore | 10 ++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/semgrep.yml create mode 100644 .semgrepignore diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml new file mode 100644 index 00000000..978018e1 --- /dev/null +++ b/.github/workflows/semgrep.yml @@ -0,0 +1,17 @@ +name: Semgrep + +on: + pull_request: + branches: [main] + +permissions: + contents: read + pull-requests: write + +jobs: + scan: + uses: kernel/security-workflows/.github/workflows/semgrep.yml@main + with: + extra-configs: '--config p/golang --config p/javascript' + codebase-description: 'Base browser images with Go server and JS client' + secrets: inherit diff --git a/.semgrepignore b/.semgrepignore new file mode 100644 index 00000000..0ba9126a --- /dev/null +++ b/.semgrepignore @@ -0,0 +1,10 @@ +node_modules/ +vendor/ +dist/ +.next/ +*_test.go +go.sum +package-lock.json +server/lib/oapi/oapi.go +images/chromium-headful/client/ +shared/cdp-test/