Commit 6711caf
authored
ci: add Semgrep SAST scanning on pull requests (#149)
Adds Semgrep static analysis on PRs to main via the reusable workflow in
kernel/security-workflows. Includes .semgrepignore for generated code,
test fixtures, and lock files.
Made with [Cursor](https://cursor.com)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Low risk CI-only change that adds a new PR workflow; main risk is
potential noisy findings or CI time/permissions issues.
>
> **Overview**
> Adds a new GitHub Actions workflow `semgrep.yml` to run Semgrep SAST
on pull requests to `main` via the reusable `kernel/security-workflows`
workflow, configured with the `p/golang` and `p/trailofbits` rulesets.
>
> Introduces `.semgrepignore` to exclude common generated/dependency
artifacts and test files (`node_modules/`, `vendor/`, `dist/`,
`*_test.go`, `go.sum`) from scanning.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
2f53190. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 82d943f commit 6711caf
2 files changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments