Commit 6026c52
authored
ci: add Semgrep SAST scanning on pull requests (#211)
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 static analysis on PRs and ignores
generated/third-party files; main impact is potential new PR check
failures/noise.
>
> **Overview**
> Adds a Semgrep SAST GitHub Actions workflow that runs on pull requests
to `main` via the reusable `kernel/security-workflows` workflow,
scanning with the `p/golang` and `p/javascript` rulesets.
>
> Introduces a `.semgrepignore` to exclude dependencies, build
artifacts, lockfiles, tests, and specific generated/fixture paths from
scanning.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
42c18c8. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 78d3f54 commit 6026c52
2 files changed
Lines changed: 27 additions & 0 deletions
| 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 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments