You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/hooks.nix
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1222,6 +1222,20 @@ in
1222
1222
};
1223
1223
};
1224
1224
};
1225
+
ripsecrets=mkOption{
1226
+
description=lib.mdDoc"ripsecrets hook";
1227
+
type=types.submodule{
1228
+
imports=hookModule;
1229
+
options.settings={
1230
+
additionalPatterns=
1231
+
mkOption{
1232
+
type=types.listOftypes.str;
1233
+
description=lib.mdDoc"Additional regex patterns used to find secrets. If there is a matching group in the regex the matched group will be tested for randomness before being reported as a secret.";
1234
+
default=[];
1235
+
};
1236
+
};
1237
+
};
1238
+
};
1225
1239
rome=mkOption{
1226
1240
description=lib.mdDoc"rome hook";
1227
1241
type=types.submodule{
@@ -2677,6 +2691,26 @@ in
2677
2691
# all file names in a single run.
2678
2692
require_serial=true;
2679
2693
};
2694
+
ripsecrets=
2695
+
{
2696
+
name="ripsecrets";
2697
+
description="Prevent committing secret keys into your source code";
0 commit comments