pre-commit's `language: script` execs the entry directly, without a shell.
Running the script through `bash` removes the dependency on the file mode
entirely, so the hook keeps working in checkouts made with core.fileMode
=false, from a tarball, or on a filesystem that does not preserve the
executable bit.
The previous commit (ca450f1) sets the mode to 100755 as well; both are
kept because they fail independently.
Not pushed.
14 lines
445 B
YAML
14 lines
445 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: nixos-flake-checks
|
|
name: nixos flake invariant checks
|
|
description: |
|
|
Runs .ci/checks.sh: sops path_regex compliance, no
|
|
`:latest` in container images (with R1.5/R1.8 whitelist),
|
|
and `nix flake check` (skippable via --no-build).
|
|
entry: bash .ci/checks.sh --no-build
|
|
language: script
|
|
pass_filenames: false
|
|
always_run: true
|