Skip to content
SprecherEast
Issue 809

process: Add free security scans and a fixed security pass for the fallback reviewer

Back to our plan
Done
ciprocesspriority: medium

Type

process

Summary

An automated review bot that skips this repository (CodeRabbit reviews only repositories with enough stars) and a Copilot review agent that is sometimes out leave the fallback reviewer session as the only security reviewer. Add free, automated security scans so the review doesn't rest on one reader, and give the fallback reviewer a fixed security pass.

Owner's request, summarized (Amine, 2026-11-07, text): add more security scanning, or make it part of the fallback review.

Problem

Today the checks are CodeQL, the dependency audit and Dependabot. The reviewer skill has a one-line security bullet. Nothing scans for committed secrets, known-vulnerable packages in a diff, or risky workflow files, and the fallback reviewer has no checklist.

Proposed fix

Native first, then plugins, then our code. Record what each step finds on this issue.

  1. GitHub-native: check whether secret scanning with push protection and Dependabot security alerts are on (repository settings; the owner may need to switch them on). Prefer these before any new tool.
  2. Official actions: add the dependency-review action to pull requests (fails on newly introduced vulnerable or disallowed-licence packages), and a secret scanner (gitleaks) if native secret scanning isn't available on this plan. Keep each as its own job and decide separately whether it becomes a required check.
  3. Static analysis beyond CodeQL: evaluate Semgrep's free rules for Next.js and TypeScript against CodeQL's coverage; add only if it finds something CodeQL doesn't.
  4. The fallback reviewer's security pass in .agents/skills/pr-review/SKILL.md: a short fixed checklist (access rules on every collection operation, input validation at boundaries, secrets and tokens, auth and session handling, new dependencies and workflow changes, data exposed to the public), run on every PR and run at opus high effort for changes touching accounts, access rules, migrations, workflows or server scripts.
  5. Record in docs/guidelines/security.md which scans exist and what each one covers.

Acceptance criteria

  • Not done: What GitHub offers natively is checked and reported here.
  • Not done: Each added scan runs on pull requests, is green on main, and is listed in the security guideline with what it covers.
  • Not done: The reviewer skill carries the security checklist; the reviewer's posted review says which items were checked.
  • Not done: Policy change; reviewed as one. Any new required check is added to the ruleset only with the owner's agreement.

Area

ci, infra


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab