Skip to content

Commit 5fe4c70

Browse files
updated gitleaks.toml and pre-commit config to enable MBI scanning (#1396)
1 parent 1f1a2de commit 5fe4c70

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.gitleaks.toml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
title = "DASG Standard"
2+
3+
[extend]
4+
useDefault = true
5+
6+
[[rules]]
7+
id = "mbi-detection"
8+
description = "Detects a potential MBI pattern based on https://www.cms.gov/medicare/new-medicare-card/understanding-the-mbi.pdf"
9+
regex = '''\b((?i)[1-9][ACDEFGHJKMNPQRTUVWXY][ACDEFGHJKMNPQRTUVWXY\d]-?\d[ACDEFGHJKMNPQRTUVWXY][ACDEFGHJKMNPQRTUVWXY\d]\d-?[ACDEFGHJKMNPQRTUVWXY]{2}\d{2})\b'''

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
repos:
22
- repo: https://github.com/gitleaks/gitleaks
3-
rev: v8.16.1
3+
rev: v8.19.2
44
hooks:
55
- id: gitleaks

0 commit comments

Comments
 (0)