bouncer-gates

v0.5.0
io.github.ajeermahmood/bouncer-gates Checked 2 days ago Published 2 months ago

Stops 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.

ParameterTypeDescription
changedbooleanOnly files that differ from the base branch. Ignored when paths is given.
onlyarrayGate names to run. Default: all.
pathsarrayFiles 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.

ParameterTypeDescription
code *stringThe source text.
filename *stringPath 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.

ParameterTypeDescription
gate *string

bouncer_gates_list_gates

The gates this server runs, with one line each.