kingfisher/.pre-commit-hooks.yaml
2026-02-03 09:32:06 -08:00

26 lines
No EOL
940 B
YAML

- id: kingfisher-auto
name: kingfisher (auto-install)
description: Automatically downloads and caches the Kingfisher binary, then scans staged changes. No manual installation required.
entry: scripts/kingfisher-pre-commit-auto.sh
language: script
pass_filenames: false
stages: [pre-commit]
- id: kingfisher-docker
name: kingfisher (docker)
description: Run Kingfisher in Docker against staged changes at the repository root. Requires Docker but no local install.
entry: ghcr.io/mongodb/kingfisher:latest
language: docker
args: ["scan", ".", "--staged", "--quiet", "--no-update-check"]
pass_filenames: false
stages: [pre-commit]
- id: kingfisher
name: kingfisher
description: Scan staged changes with the locally installed Kingfisher binary.
entry: kingfisher
language: system
args: ["scan", ".", "--staged", "--quiet", "--no-update-check"]
pass_filenames: false
types: [file]
stages: [pre-commit]