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
Add these additional matches to the [Secret Scanning Custom Pattern](https://docs.github.com/en/enterprise-cloud@latest/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning#example-of-a-custom-pattern-specified-using-additional-requirements).
283
+
284
+
285
+
- Not Match:
286
+
287
+
```regex
288
+
^666-.*$
289
+
```
290
+
- Not Match:
291
+
292
+
```regex
293
+
^.*-0000$
294
+
```
295
+
- Not Match:
296
+
297
+
```regex
298
+
^078-05-1120$
299
+
```
300
+
301
+
</details>
302
+
303
+
## US Individual Taxpayer Identification Number (ITIN)
304
+
305
+
306
+
307
+
_version: v0.1_
308
+
309
+
**Comments / Notes:**
310
+
311
+
312
+
- This can produce false positives, since it doesn't check for all known-invalid numbers
313
+
314
+
- There is no checksum, so where this produces false positives there is no reliable way to filter them out with post-processing
- There is no checksum, so where this produces false positives there is no reliable way to filter them out with post-processing
352
+
353
+
354
+
<details>
355
+
<summary>Pattern Format</summary>
356
+
357
+
```regex
358
+
[A-Z]{2} ?[0-9]{2} ?[0-9]{2} ?[0-9]{2} ?[A-D]
359
+
```
360
+
361
+
</details>
362
+
363
+
<details>
364
+
<summary>Start Pattern</summary>
365
+
366
+
```regex
367
+
\A|[^0-9A-Za-z]
368
+
```
369
+
370
+
</details><details>
371
+
<summary>End Pattern</summary>
372
+
373
+
```regex
374
+
\z|[^0-9A-Za-z]
375
+
```
376
+
377
+
</details>
378
+
379
+
<details>
380
+
<summary>Additional Matches</summary>
381
+
382
+
Add these additional matches to the [Secret Scanning Custom Pattern](https://docs.github.com/en/enterprise-cloud@latest/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning#example-of-a-custom-pattern-specified-using-additional-requirements).
0 commit comments