From 9c774a239cbb09d509c6edbf9bc5d7795a57a7a1 Mon Sep 17 00:00:00 2001 From: Ulzii Otgonbaatar Date: Fri, 10 Apr 2026 11:32:20 -0600 Subject: [PATCH] ci: add Semgrep SAST scanning on pull requests Made-with: Cursor --- .github/workflows/semgrep.yml | 17 +++++++++++++++++ .semgrepignore | 5 +++++ 2 files changed, 22 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..8bebb94e --- /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/trailofbits' + codebase-description: 'Hypervisor runtime managing VMs for customer browser sessions' + secrets: inherit diff --git a/.semgrepignore b/.semgrepignore new file mode 100644 index 00000000..1927ca8e --- /dev/null +++ b/.semgrepignore @@ -0,0 +1,5 @@ +node_modules/ +vendor/ +dist/ +*_test.go +go.sum