Skip to content

Commit 14fdd62

Browse files
Update gitleaks.toml
Address OID patterns issues
1 parent de9fe69 commit 14fdd62

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

scripts/config/gitleaks.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,15 @@ regex = '''[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'''
1212
regexTarget = "match"
1313
regexes = [
1414
# Exclude the private network IPv4 addresses as well as the DNS servers for Google and OpenDNS
15-
'''(127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|172\.(1[6-9]|2[0-9]|3[0-1])\.[0-9]{1,3}\.[0-9]{1,3}|192\.168\.[0-9]{1,3}\.[0-9]{1,3}|0\.0\.0\.0|255\.255\.255\.255|8\.8\.8\.8|8\.8\.4\.4|208\.67\.222\.222|208\.67\.220\.220)''','''urn:oid:[0-9]+(\.[0-9]+)*''',
15+
'''(127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|172\.(1[6-9]|2[0-9]|3[0-1])\.[0-9]{1,3}\.[0-9]{1,3}|192\.168\.[0-9]{1,3}\.[0-9]{1,3}|0\.0\.0\.0|255\.255\.255\.255|8\.8\.8\.8|8\.8\.4\.4|208\.67\.222\.222|208\.67\.220\.220)''',
1616
]
1717

1818
[allowlist]
1919
paths = ['''.terraform.lock.hcl''', '''poetry.lock''', '''yarn.lock''']
20+
21+
[[allowlists]]
22+
description = "Hl7 UK Issued OIDs publicly available here: https://www.hl7.org.uk/standards/object-identifiers-oids/hl7-uk-issued-oids/"
23+
regexTarget = "line"
24+
regexes = [
25+
'''2.16.840.1.113883.2.1'''
26+
]

0 commit comments

Comments
 (0)