CI: semgrep in the scan job #53

Merged
jared merged 1 commits from ci-semgrep into main 2026-11-22 16:51:22 -05:00
Owner

Part of #45 (phase 4).

This adds semgrep 1.184.0 to the Scan job, so the required check name doesn't change. It runs the JavaScript, Node.js, Express, secrets and security-audit rule packs with --error, so any finding fails the check. public/web_template and node_modules are excluded.

Dry run on main (approved):

  • 49 files scanned: no findings from the first four packs.
  • security-audit flagged 1 false positive: scripts/demo/seed.py calls urlopen on a fixed loopback demo URL. I suppressed it on that line with the rule id and a comment explaining why.
  • I checked that the rules actually fire, using a deliberately bad Express sample.

Caveat: the rule packs come from the semgrep registry, so a new rule can surface a new finding on an unchanged commit. In that case, fix it, or suppress that one line with a reason. The README documents how.

🤖 Generated with Claude Code

Part of #45 (phase 4). This adds semgrep 1.184.0 to the `Scan` job, so the required check name doesn't change. It runs the JavaScript, Node.js, Express, secrets and security-audit rule packs with `--error`, so any finding fails the check. `public/web_template` and `node_modules` are excluded. **Dry run on main (approved):** - 49 files scanned: no findings from the first four packs. - security-audit flagged 1 false positive: `scripts/demo/seed.py` calls `urlopen` on a fixed loopback demo URL. I suppressed it on that line with the rule id and a comment explaining why. - I checked that the rules actually fire, using a deliberately bad Express sample. **Caveat:** the rule packs come from the semgrep registry, so a new rule can surface a new finding on an unchanged commit. In that case, fix it, or suppress that one line with a reason. The README documents how. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jared added 1 commit 2026-11-22 16:43:20 -05:00
CI: semgrep in the scan job
CI / Lint (eslint) (push) Successful in 17s
CI / Test (jest) (push) Successful in 17s
CI / Security (npm audit) (push) Successful in 9s
CI / Integration (api) (push) Successful in 2m49s
CI / Lint (eslint) (pull_request) Successful in 16s
CI / Test (jest) (pull_request) Successful in 15s
CI / UI (playwright) (push) Successful in 3m4s
CI / Security (npm audit) (pull_request) Successful in 9s
CI / Integration (api) (pull_request) Successful in 1m59s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 2m27s
CI / UI (playwright) (pull_request) Successful in 1m54s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / Scan (secrets, workflows, shell) (push) Successful in 1m28s
CI / Deploy (push) Skipped
CI / Notify (push) Skipped
d96b2ad4cf
JavaScript, Node.js, Express, secrets and security-audit rule packs, with
--error so findings fail the check. Dry run on main: no findings from the
first four packs; security-audit flagged one false positive (the demo seed
script's urlopen of a fixed loopback URL), suppressed on that line with the
reason. Part of #45 phase 4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jared merged commit 4f6672a7ef into main 2026-11-22 16:51:22 -05:00
jared deleted branch ci-semgrep 2026-11-22 16:51:23 -05:00
Sign in to join this conversation.