Repository navigation
The reviewer can now review and approve dependency-bot PRs (Dependabot) on its own once CI passes, guarded by deterministic checks. Existing callers keep working unchanged: without a dependencyUpdates block and a workflow_run trigger, nothing new runs.
- Setting:
dependencyUpdatesin theREVIEW.mdsettings block (from the base branch):authors(bot logins),pushers,pinFilesandknownGaps. See docs/configuration.md. - Trigger: add
workflow_run: { workflows: [CI], types: [completed] }to the caller. The gate reviews only a successful same-repopull_requestrun whose PR is open, not a draft, by a listed bot, still at that head, not yet reviewed by the bot, with every check at the head green. - Guards: the high-risk-path and bot-author rules are lifted only when every commit is the listed bot's (or a listed pusher's), there are no merge commits, and every changed file is a lock file, a pin file, or a manifest or workflow whose diff changes only versions, SHAs and
# vXcomments. No changed line may bump the reviewer itself. Everything else still applies. Why this is safe: docs/security-model.md. - needs-run findings can name a declared known CI gap (
knownGap), which then doesn't block approval on an exempt PR. - Review skill: a dependency-update section (install scripts, new transitive deps, typosquats, publisher and licence changes, action SHA vs tag, majors hidden in minor groups).
Secrets: a run that Dependabot's CI starts gets only Dependabot secrets. Store the reviewer's secrets as Dependabot secrets too, under the names the caller reads.
Upgrade: uses: neralabs/reviewer/.github/workflows/review.yml@v0.1.2 with reviewer_ref: v0.1.2 (docs/versioning.md).
Full change: #5.