Skip to content

Commit

Permalink
config: staged linter
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Dec 26, 2023
1 parent ca4be3b commit d411084
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nix/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit d411084

Please sign in to comment.