Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/semgrep.yml
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
10 changes: 10 additions & 0 deletions .semgrepignore
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
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing bun.lock in .semgrepignore lock file list

Low Severity

The .semgrepignore includes go.sum and package-lock.json as lock files to ignore, but the repository actually uses bun.lock (present at the repo root alongside package.json with @types/bun as a dev dependency). This lock file is not listed in the ignore file, inconsistent with the stated intent to exclude lock files from scanning.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit a2daadf. Configure here.

server/lib/oapi/oapi.go
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generated file not excluded from Semgrep scanning

Low Severity

The .semgrepignore excludes server/lib/oapi/oapi.go as generated code, but misses server/lib/policy/policy_registry.go, which is also auto-generated (marked // Code generated by generate_registry.py ... DO NOT EDIT.). This large 500+ line file of map literals will be scanned by Semgrep, likely producing false positives on code that developers don't maintain by hand.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 42c18c8. Configure here.

images/chromium-headful/client/
shared/cdp-test/
Loading