From d411084b09b2da4fa90dc0feaa901e9309259c5c Mon Sep 17 00:00:00 2001 From: kirinnee Date: Tue, 26 Dec 2023 11:08:25 +0800 Subject: [PATCH] config: staged linter --- nix/pre-commit.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nix/pre-commit.nix b/nix/pre-commit.nix index 8cf1572..5c9ee30 100644 --- a/nix/pre-commit.nix +++ b/nix/pre-commit.nix @@ -127,6 +127,15 @@ pre-commit-lib.run { pass_filenames = false; }; + a-infisical-staged = { + enable = true; + name = "Secrets Scanning (Staged files)"; + description = "Scan for possible secrets in staged files"; + entry = "${packages.infisical}/bin/infisical scan git-changes --staged -v"; + language = "system"; + pass_filenames = false; + }; + a-gitlint = { enable = true; name = "Gitlint";