From c40763071dd2cacea2114b1edeed0bad44c78a84 Mon Sep 17 00:00:00 2001 From: Ulzii Otgonbaatar Date: Fri, 10 Apr 2026 11:34: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 0000000..32fec52 --- /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: 'Kernel CLI tool authenticating with customer API keys' + secrets: inherit diff --git a/.semgrepignore b/.semgrepignore new file mode 100644 index 0000000..1927ca8 --- /dev/null +++ b/.semgrepignore @@ -0,0 +1,5 @@ +node_modules/ +vendor/ +dist/ +*_test.go +go.sum