process: Add free security scans and a fixed security pass for the fallback reviewer
Back to our planType
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.
- 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.
- 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.
- 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.
- 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 atopushigh effort for changes touching accounts, access rules, migrations, workflows or server scripts. - Record in
docs/guidelines/security.mdwhich 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