Mirrors the hook + script from `fai/platform`@1ebf893 verbatim so commits to fai_dart_sdk go through the same gate: secrets, forbidden filenames, confidentiality references, marketing- speak, DCO sign-off, Conventional Commits subject, no Claude co-author trailer. No `.security-allow` needed here — the SDK has no banned-words gate or policy doc that mentions the filtered terms verbatim. A full-history dry-run came back clean. Activate once per clone with `bash tools/install-hooks.sh`. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
6 lines
350 B
Bash
Executable file
6 lines
350 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# F∆I Platform — pre-commit hook.
|
|
# Activated via `tools/install-hooks.sh` (sets core.hooksPath=.githooks).
|
|
# Scans staged files for secrets, banned phrases, forbidden filenames.
|
|
# Same script runs in Forgejo CI — see .forgejo/workflows/ci.yml.
|
|
exec "$(git rev-parse --show-toplevel)/tools/security/check-staged.sh" content
|