bouncer-gates
v0.5.0Stops secrets, cross-tenant queries and unsafe migrations before they merge.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
bouncer_gates_scan
Run the bouncer-gates checks on files in the repository. With `paths`, scans only those files, whether or not git tracks them yet. Without `paths`, scans the whole repository, or only changed files when `changed` is true. Returns findings with a file, line, rule, message and fix, plus any gate that could not run and why.
| Parameter | Type | Description |
|---|---|---|
changed | boolean | Only files that differ from the base branch. Ignored when paths is given. |
only | array | Gate names to run. Default: all. |
paths | array | Files to scan, relative to the repository root or absolute. |
bouncer_gates_scan_snippet
Run the bouncer-gates checks on code that is not on disk yet, using this repository's configuration. Give the filename it will have, because the extension decides which gates apply.
| Parameter | Type | Description |
|---|---|---|
code * | string | The source text. |
filename * | string | Path the code will live at, e.g. src/orders.ts or migrations/002.sql. |
bouncer_gates_explain
What one gate checks, what it deliberately does not catch, and how to excuse one line.
| Parameter | Type | Description |
|---|---|---|
gate * | string |
bouncer_gates_list_gates
The gates this server runs, with one line each.