-
Notifications
You must be signed in to change notification settings - Fork 49
ci: add Semgrep SAST scanning on pull requests #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| node_modules/ | ||
| vendor/ | ||
| dist/ | ||
| .next/ | ||
| *_test.go | ||
| go.sum | ||
| package-lock.json | ||
| server/lib/oapi/oapi.go | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Generated file not excluded from Semgrep scanningLow Severity The Reviewed by Cursor Bugbot for commit 42c18c8. Configure here. |
||
| images/chromium-headful/client/ | ||
| shared/cdp-test/ | ||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing
bun.lockin.semgrepignorelock file listLow Severity
The
.semgrepignoreincludesgo.sumandpackage-lock.jsonas lock files to ignore, but the repository actually usesbun.lock(present at the repo root alongsidepackage.jsonwith@types/bunas a dev dependency). This lock file is not listed in the ignore file, inconsistent with the stated intent to exclude lock files from scanning.Reviewed by Cursor Bugbot for commit a2daadf. Configure here.